zng::menu::context

Function context_menu

source
pub fn context_menu(child: impl UiNode, menu: impl UiNode) -> impl UiNode
Expand description

P Defines the context menu shown when the widget is enabled and receives a context click.

The menu can be any widget, the ContextMenu! is recommended. The menu widget is open using POPUP and is expected to close itself when the context action is finished or it loses focus.