Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Remove link dynamically (Read 2394 times)
Ngo Duc Quang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 14
Location: Ha Noi
Joined: Jun 10th, 2019
Remove link dynamically
Jun 10th, 2019 at 9:24am
Print Post  
I want to remove dynamically a link when double click to link.

Thanks for the help!
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3343
Joined: Oct 19th, 2005
Re: Remove link dynamically
Reply #1 - Jun 10th, 2019 at 9:35am
Print Post  
Hi,

You should be able to detect the double click by implementing DiagramListener.linkDoubleClicked, and then call diagram.getItems().remove(link) to delete it.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Ngo Duc Quang
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 14
Location: Ha Noi
Joined: Jun 10th, 2019
Re: Remove link dynamically
Reply #2 - Jun 10th, 2019 at 10:24am
Print Post  
Thanks you very much!!!  Grin Grin Grin
There is one more problem:
I want to resize text in node and link. What's its function?
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint