Prevent Annotations On Nodes

Hi, how do I prevent a double click from opening a text box on a node?



I am reasonably sure there's a constraint, but not sure which one.

Many Thanks

3 Replies

AR Aravind Ravi Syncfusion Team April 24, 2020 04:56 AM UTC

Hi James, 
 
To disable edit while double click on annotation set annotation constraints as “ReadOnly”. So that when double click on the annotation text box does not appears. Please find below code snippet for how to set annotation constraints 
 
var node= { 
    id: 'node1', width: 100, height: 100, offsetX: 300, offsetY: 100, 
    annotations: [{ content: 'Node1', constraints: AnnotationConstraints.ReadOnly }], 
    }; 
 
Regards 
Aravind Ravi 



JH James Hutchison April 24, 2020 06:14 AM UTC

Of course, thanks.

See the source image


AR Aravind Ravi Syncfusion Team April 24, 2020 12:12 PM UTC

Hi James, 
 
Thanks for your update. Please let us know if you need any further assistance on this. 
 
Regards 
Aravind Ravi 


Loader.
Up arrow icon