The content panel of an accordion item that is conditionally visible.
id
anyA global unique identifier for the panel.
panelId
anyA local unique identifier for the panel, used to match with its trigger's panelId.
visible
anyWhether the accordion panel is visible. True if the associated trigger is expanded.
expand
voidExpands this item.
voidcollapse
voidCollapses this item.
voidtoggle
voidToggles the expansion state of this item.
voidDescription
The content panel of an accordion item that is conditionally visible.
This directive is a container for the content that is shown or hidden. It requires
a panelId that must match the panelId of its corresponding ngAccordionTrigger.
The content within the panel should be provided using an ng-template with the
ngAccordionContent directive so that the content is not rendered on the page until the trigger
is expanded. It applies role="region" for accessibility and uses the inert attribute to hide
its content from assistive technologies when not visible.
<div ngAccordionPanel panelId="unique-id-1"> <ng-template ngAccordionContent> <p>This content is lazily rendered and will be shown when the panel is expanded.</p> </ng-template></div>