Open mcollovati opened 2 years ago
Consider introducing a specific interface for context menu handling, so that ComponentWrap
will not be coupled to ContextMenuWrap
It seems not possible at the moment get the context menu starting from the component. There's an open issue on components repository for this https://github.com/vaadin/flow-components/issues/1520
ComponentWrap class should have a method (e.g
contextMenu()
oropenContextMenu()
) to get the potential context menu assigned to the UI component. The method should return anOptional<ContextMenuWrap>
. Document the fact that an empty optional means that the component does not have a Vaadin context menu, but it may have the native browser menu.