Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Combine onHover ports and onHover adornments

$
0
0

@zamehan wrote:

Hello,

I try to make a node that has ports only shown when the node is hovered with the function makePort (https://gojs.net/latest/samples/draggableLink.html) and also a button that has to be outside the node and only shown when the node is hovered.

Here is the codesandbox: https://codesandbox.io/s/pensive-breeze-9y3b0

As you can see, there is no way to click on the button Hi as it disappear each time the mouse leaves the node, and also it seems like the button onclick doesn’t work (no alert). How could I fix that? Thank you for your answer.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles