Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic cancel nodeClicked() (Read 2355 times)
hans
Junior Member
**
Offline


I Love MindFusion!

Posts: 81
Location: Netherlands
Joined: Mar 17th, 2012
cancel nodeClicked()
Feb 16th, 2013 at 10:57pm
Print Post  
I have a attached node with nodeClickedScript.
I want this node not to be selected when user clicks it.
So I tried this in my script :
args.getNode().setSelected(false);
args.setCancel(true);

The node is still selected.
Is there a way to get the node unselected?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: cancel nodeClicked()
Reply #1 - Feb 18th, 2013 at 8:54am
Print Post  
You could set Locked = true to prevent the node's selection. Our components usually raise NodeClicked events for locked nodes too, but now I see the JS library does not. Our developers will fix it for the upcoming release.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: cancel nodeClicked()
Reply #2 - Feb 18th, 2013 at 5:27pm
Print Post  
This version raises nodeClicked event for locked nodes too, so now you should be able to implement your scenario by setting Locked = true for the attached nodes:
https://mindfusion.eu/_beta/jsdiag_lockedclick.zip

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