The trigger that toggles the visibility of its associated ngAccordionPanel.
element
HTMLElementA reference to the trigger element.
id
anyA unique identifier for the widget.
panelId
anyA local unique identifier for the trigger, used to match with its panel's panelId.
disabled
anyWhether the trigger is disabled.
expanded
anyWhether the corresponding panel is expanded.
active
anyWhether the trigger is active.
expand
voidExpands this item.
voidcollapse
voidCollapses this item.
voidtoggle
voidToggles the expansion state of this item.
voidDescription
The trigger that toggles the visibility of its associated ngAccordionPanel.
This directive requires a panelId that must match the panelId of the ngAccordionPanel it
controls. When clicked, it will expand or collapse the panel. It also handles keyboard
interactions for navigation within the ngAccordionGroup. It applies role="button" and manages
aria-expanded, aria-controls, and aria-disabled attributes for accessibility.
The disabled input can be used to disable the trigger.
<button ngAccordionTrigger panelId="unique-id-1"> Accordion Trigger Text</button>