Skip to content

Hide node element on GLSP editor on click event #700

Answered by martin-fleck-at
Abhay0294 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Abhay0294,

  1. 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 ;-)

  2. If you only want to hide the element from the user (without any involvemen…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@martin-fleck-at
Comment options

@Abhay0294
Comment options

@martin-fleck-at
Comment options

@Abhay0294
Comment options

@martin-fleck-at
Comment options

Answer selected by Abhay0294
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants