Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic how to remove a link ? (Read 1896 times)
jay
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
how to remove a link ?
Feb 20th, 2009 at 11:44am
Print Post  
Hi stoyan,

       In linkCreated event I am doing some valiation for  link, if it fails that validation i want to remove that link. How to do that. Here I did not find e.setCancle() .


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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: how to remove a link ?
Reply #1 - Feb 20th, 2009 at 12:53pm
Print Post  
Hi Jay,

You can cancel it from the linkCreating() event, or call diagram.getLinks().remove() from linkCreated().

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


I love YaBB 1G - SP1!

Posts: 59
Joined: Feb 4th, 2009
Re: how to remove a link ?
Reply #2 - Feb 20th, 2009 at 1:20pm
Print Post  
Hi stoyan,


             Thanks a lot. It worked with
diag.getLinks().remove(link);
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint