How do you handle events, such as button clicks, inside decorations?
For example, if I have a widget that is a button and when it is clicked I want to change its icon and hide some of its parent containers content.
I was able to get the behavior working via the nodeViews (listening the the click action in the container rather than the button itself). But this seems pretty hacky. Another alternative might be listening to custom events in the parent container. But before I do that, is there an equivalent of
view.dispatch for decorations or some other recommended way to have the view react to events?