Skip to content

Dialog Box #1242

Answered by planger
JValGLZ asked this question in General
Feb 8, 2024 · 1 comment
Discussion options

You must be logged in to vote

Hi @JValGLZ,

typically something like that is implemented with a UI Extension, which implements the UI (text boxes, etc.) with plain HTML on top of the diagram.

In particular, you would

  1. Register your UI extension
  2. Register a mouse listener that reacts e.g. on double-click and shows the UI extension
  3. Ensure your UI extension is placed on top of the diagram on the correct location, typically in the onBeforeShow method of your UI extension (see e.g. the implementation of the label editing on double-click)

Roughly it would look as follows:

// in your module
...
   // 1.
    bind(YourUIExtension).toSelf().inSingletonScope();
    bind(TYPES.IUIExtension).toService(YourUIExtension);
   // 2.
    b…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JValGLZ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants