Hide node element on GLSP editor on click event #700
-
Hi, My requirement is as follows:
Is there any way how can I achieve this ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi @Abhay0294,
|
Beta Was this translation helpful? Give feedback.
Hi @Abhay0294,
There are several ways you could add a button to the GLSP editor, depending on where you would like to trigger the action
i. You could add a button to the tool palette which triggers an action for all selected elements. You can retrieve the selected elements through the editor context.
ii. If you use the Theia integration, you could use a context menu entry for Show/Hide, similar to how it is done for deletion in the workflow example.
iii. You can overlay the diagram with a custom HTML element that is rendered as a UI Extension.
iv. Any mouse tool interaction or anything else you can think of ;-)
If you only want to hide the element from the user (without any involvemen…