Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LinkCreatedScript (events & methods) @JavaApplet (Read 2790 times)
henry k
Junior Member
**
Offline


I Love MindFusion!

Posts: 51
Location: Finland
Joined: Apr 4th, 2012
LinkCreatedScript (events & methods) @JavaApplet
Apr 19th, 2012 at 12:11pm
Print Post  
On LinkCreatedScript case I wish to get hang of nodes that are being involved. (source & destination)
Either nodes bounds or text...

But, this:
Code (Javascript)
Select All
function onNodeLinkCreated(sender, args) {
   var sourceNodeText = args.getOldText();
   var targetNodeText = args.getNewText();
}
 


as (get[old|new]Text()) method doesn't work... (object doesn't support this property or method)

Br. Henry
  
Back to top
 
IP Logged
 
henry k
Junior Member
**
Offline


I Love MindFusion!

Posts: 51
Location: Finland
Joined: Apr 4th, 2012
Re: LinkCreatedScript (events & methods) @JavaApplet
Reply #1 - Apr 19th, 2012 at 1:07pm
Print Post  
Nevermind... my-bad. (I should learn to read  Embarrassed )


Code (Javascript)
Select All
   args.getLink(); // gets link that is created
   args.getLink().getOrigin(); // gets source node
   args.getLink().getDestination() // gets target node
 

  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint