Is it possible to show adornment outside of the node on hover?

Hi,

I found a good example of how to show adornment buttons for the node.

In my case, we want to show actions when a node is hovered. The only issue I’m currently facing is that the adornment gets hidden as soon as the cursor leaves the node, which makes it impossible to click on the actions within it. I could use a setTimeout to delay hiding it, but that wouldn’t provide a smooth user experience.

Probably there is a better solution that I’m missing?

@walter thank you

The only issue I see with this sample is that when I hover over a node and then move the cursor away without hovering over the adornment, the adornment remains visible until I hover over another node.

Is there a way to hide adornment when node loses the focus?

Yes, that was intentional, so that the Adornment wouldn’t disappear until needed elsewhere, unless the user passed the mouse over one of its buttons.

I suppose you could implement a Diagram.mouseHover event handler to remove the Adornment if it is attached to some Node.