Skip to main content
cngx-src documentation

CngxMenuItemSuffix

Directivev0.1.0WCAG AA

projects/common/interactive/menu/menu-item-slot.directives.ts

Import#

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

Description#

Marker directive for a trailing detail slot inside a [cngxMenuItem]

  • secondary text or a status pill that sits between the label and the keyboard-shortcut hint. Applies cngx-menu-item__suffix and defaults the host to aria-hidden="true". The slot is supplemental, the primary name belongs to the label. Override with [attr.aria-hidden]="null" when the suffix carries meaning AT needs (status text, semantic badge).

https://cngxjs.github.io/cngx/examples/#/common/interactive/menu/base/action-menu-with-separator

Metadata#

Host#