CngxMenuItem
projects/common/interactive/menu/menu-item.directive.ts
Import#
import { CngxMenuItem } from '@cngx/common/interactive'
Description#
A single action menuitem registered with a surrounding CngxActiveDescendant.
Unlike CngxOption, menu items carry no selection state - activation fires
the AD's activated output and the consumer dispatches the action.
Click activates (honouring the disabled state). pointerenter highlights
without activating, matching native menu behaviour.
Metadata#
Host#
Providers#
CNGX_AD_ITEM- useExisting
CngxMenuItem
Relationships
Index#
Inputs
Derived State
HostBindings
HostListeners
Inputs#
T | undefinedInstance Properties#
Methods#
HostBindings#
| Binding | Expression |
|---|---|
[id] | id |
[class.cngx-menu-item--highlighted] | isHighlighted() |
[class.cngx-menu-item--disabled] | disabled() |
[attr.aria-disabled] | disabled() || null |
[attr.tabindex] | -1 |
HostListeners#
| Event | Handler |
|---|---|
(click) | click() |
(pointerenter) | pointerenter() |