Fire a custom event at iframe #4630
Unanswered
reinoutkoninkx
asked this question in
Q&A
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hello, I have been looking into the drawio source code on this repository.
I have been wanting to add my own options in the contextmenu that appears when rightclicking on a shape.
My application in which I host the iframe uses 6 of the shapes in drawio mainly, the rightclick on the shape would need to differentiate the shapes and pass these somehow as argument, aswell as the link stored in the UserObject. Knowing the context of which shape was clicked on I need to show different options in the contextmenu.
When clicking on one of the appeared options I would need to fire a custom event at the iframe containing the url of the original clicked item aswell as some king of property linked to the option that was clicked on. So only 2 parameters, for example: ('applications/523' <-- URL of rightclicked shape in drawio, 'businesscapabilities' <-- objecttype of clicked option in contextmenu)
Once I get this working and the parameters are sent to the iframe, I can continue work properly without a problem.
The issue lies only in the drawio source code part.
Any help is appreciated greatly!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions