I’d like to build the following:
The UI should appear when the user’s cursor is within the table and hide when it is not. I’m not sure if I should be using a
Decoration, or a Plugin’s
View. Looks like the tooltip example is the closest to what I want and I’ll probably go down that route (using a Plugin’s
I’d go with decorations, since node views aren’t notified of selection changes.
Looking at the documentation, I can’t see how it receives selection changes / updates. Is the idea that I’d use Plugin -> state ->
apply() to determine if I should create or destroy the widget decoration?
Thanks again for the help!
Yes, that’s the idea—on state updates, make sure the decorations are present where they should be, and removed where they no longer apply.