Skip to main content
cngx-src documentation

CngxMenuItemCore

Interface

projects/common/interactive/menu/menu-item-core.ts

Import#

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

Description#

The shared interaction bundle injectMenuItemCore returns. Menu item variants re-export id/isHighlighted/label (their CngxAdItemHandle surface) and delegate their host listeners to the handler pair.

Index#

Instance Properties#

Readonly

Stable unique item id used for aria-activedescendant targeting.

isHighlighted#Signal
Readonly

true while the surrounding active-descendant highlights this item.

Methods#

handleClick#void

Bind to the host's (click) listener.

handlePointerEnter#void

Bind to the host's (pointerenter) listener.

label#string

Label accessor: explicit input wins over the host's trimmed text content.