Function zng::menu::context::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.