Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Selecting nodes programatically using javascript (Read 1835 times)
Kiran B
Full Member
***
Offline


I Love MindFusion!

Posts: 102
Joined: Apr 19th, 2013
Selecting nodes programatically using javascript
May 21st, 2013 at 12:19pm
Print Post  
Hi,

I need to select the nodes programatically using JavaScript.

It should behave exactly same as manual selection. The selection handle has to come and the diagram.getSelection() should return the item also.

Is there any way?

Thanks
Kiran B
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Selecting nodes programatically using javascript
Reply #1 - May 21st, 2013 at 2:26pm
Print Post  
Hi,

Call node.setSelected(true);

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint