Skip to main content
cngx-src documentation

CngxMenuNavStrategy

Interface

projects/common/interactive/menu/menu-nav-strategy.ts

Import#

import { CngxMenuNavStrategy } from '@cngx/common/interactive'

Description#

Pluggable keyboard policy for ArrowRight/ArrowLeft inside a menu or menubar. The default (createW3CMenuStrategy) matches the W3C APG menu pattern; consumers needing alternative semantics (e.g. "ArrowRight always opens, never traverses into the submenu") register their own via CNGX_MENU_NAV_STRATEGY.

Strategy steps are pure decisions - they do not call popover.show() or touch any signal directly. The directive that consults the strategy acts on the returned action.

Index#

Methods#

onArrowLeft(ctx: CngxMenuNavContext)
onArrowRight#CngxMenuNavAction
onArrowRight(ctx: CngxMenuNavContext)