Skip to main content
cngx-src documentation

CngxAccordionItemTitle

Directivev0.1.0WCAG AA

projects/ui/accordion/accordion-item-title.directive.ts

Import#

import { CngxAccordionItemTitle } from '@cngx/ui/accordion'

Description#

Projected-title marker for a CngxAccordionItem. Put it on the element that names the section; the item projects it into the header button via <ng-content select="[cngxAccordionItemTitle]">, so the title becomes the header's accessible name.

<cngx-accordion-item>
  <span cngxAccordionItemTitle>Billing</span>
  Body…
</cngx-accordion-item>

Metadata#