CngxOptionGroup
projects/common/interactive/listbox/option-group.directive.ts
Import#
import { CngxOptionGroup } from '@cngx/common/interactive'
Description#
Groups related CngxOptions under a visual and semantic header.
Renders role="group" and aria-label - children stay flat in the AD item
list; grouping is purely presentational and for ATs that render group labels.
Hierarchy-aware projection roots (e.g. CngxSelectShell) query
CNGX_OPTION_CONTAINER to walk the direct children in DOM order and read
each group's options to populate CngxSelectOptionGroupDef.options.
Nested option groups are unsupported - a dev-warning fires when one is
detected.
Metadata#
Host#
Providers#
CNGX_OPTION_CONTAINER- useExisting
CngxOptionGroup