Search code examples
gojs

How can I add an Adornment or a ToolTip to a temporaryToPort Object of (Re-)LinkingTool on dragging links


When re-/Linking nodes in GoJs, I need specialized information (as a ToolTip, adornment or similar) about the currently temporary selected port of a node (e.g. port name or type etc.) when Mouse hovers it.
A simple toolTip on the appropriate Panel/Shape definition doesn't work when dragging links.

How can I achieve this?

Thanks a lot.


Solution

  • You need to customize the LinkingTool. For example, see: https://gojs.net/extras/linkValidationToolTip.html