how to prevent or delete a link ...

13 views
Skip to first unread message

keith bradley

unread,
Jan 23, 2022, 3:21:41 PMJan 23
to Sedona Framework
Good day all !

Trying to find a way to prevent someone linking between components in my kit to any other comp ...

... or in the linkEvent callback ... delete the new link.


Any ideas?

Thanks!


Murat Egrikavuk

unread,
Jan 27, 2022, 5:56:45 AMJan 27
to Sedona Framework
I think you can override the linkEvent method in your component:


Then, if it as an ADDED evet, you can lookup the from/to components  - App.lookup(int id)
Check the linked components type to see if it is from your kit or not.
Use App.removeLink(...) if you decide to delete it.

From: sedo...@googlegroups.com <sedo...@googlegroups.com> on behalf of keith bradley <kmbra...@gmail.com>
Sent: Sunday, January 23, 2022 23:21
To: Sedona Framework <sedo...@googlegroups.com>
Subject: [sedonadev] how to prevent or delete a link ...
 
--
You received this message because you are subscribed to the Google Groups "Sedona Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sedonadev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sedonadev/c5b0bda4-ff57-421f-917e-90f91e744654n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages