Function zng_wgt_menu::context::context_menu_anchor

source ยท
pub fn context_menu_anchor(
    child: impl UiNode,
    click_shortcut: impl IntoVar<(AnchorMode, AnchorMode)>,
) -> impl UiNode
Expand description

P Set the position of the context-menu widgets opened for the widget or its descendants.

This property defines two positions, (click, shortcut), the first is used for context clicks from a pointer device, the second is used for context clicks from keyboard shortcut.

By default tips are aligned to cursor position at the time they are opened or the top for shortcut.

This property sets the CONTEXT_MENU_ANCHOR_VAR.