Skip to main content
cngx-src documentation

withDefaultHeadingLevel

Functionui/accordionv0.1.0

projects/ui/accordion/config/features.ts

Description#

Override the default heading level (aria-level) a CngxAccordionGroup applies when [headingLevel] is not bound. Per-instance [headingLevel] still wins; the group clamps the resolved value into the ARIA 2-6 range.

provideAccordionConfig(withDefaultHeadingLevel(2));

Signature#

withDefaultHeadingLevel(headingLevel: number)

Parameters#

@paramheadingLevelnumber

Returns#

CngxAccordionConfigFeature