Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Disable default drawing new node behavior on diagram (Read 1538 times)
Alex_Z
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 2
Joined: May 4th, 2017
Disable default drawing new node behavior on diagram
May 4th, 2017 at 5:47pm
Print Post  
Hi,

When we try to hold and move cursor, it will automatically draw new node. Since we have NodeListView and we're expecting end-user selecting node from NodeListView instead of drawing directly on diagram, is there any way to disable this default behavior?
Thanks in advance!
  

default.png ( 7 KB | 97 Downloads )
default.png
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3152
Joined: Oct 19th, 2005
Re: Disable default drawing new node behavior on diagram
Reply #1 - May 4th, 2017 at 6:34pm
Print Post  
Hi!

Yes, set diagram's Behavior property to either DrawLinks, Modify, SelectOnly depending on what you allow users to do -

Code
Select All
var Behavior = MindFusion.Diagramming.Behavior;
diagram.setBehavior(Behavior....);  



http://www.mindfusion.eu/onlinehelp/jsdiagram/index.htm?CC_T_MindFusion_Diagramm...

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint