Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Deleting nodes and links using javascript (Read 1861 times)
choohj70
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Sep 23rd, 2008
Deleting nodes and links using javascript
May 28th, 2009 at 1:32am
Print Post  
How do you delete a node and/or a link on an applet using javascript?

It doesn't seem to have an equivalent of the DiagramNodeCollection that I can use "Remove" to remove a single node from... Same goes for the DiagramLinkCollection.

Is this accurate or am I missing something obvious?

Thank you.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Deleting nodes and links using javascript
Reply #1 - May 28th, 2009 at 7:44am
Print Post  
Hi,

Call the applet's getDiagram() method to get the Diagram object, and then diagram.getNodes().remove(someNode).

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
choohj70
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 77
Joined: Sep 23rd, 2008
Re: Deleting nodes and links using javascript
Reply #2 - May 28th, 2009 at 4:59pm
Print Post  
Thank you. That worked perfectly.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint