The Accordion is a container-based component that can house multiple expansion panels and offers keyboard navigation.
- Slots
-
default— Renders the expansion panels inside default slot.
Properties
Section titled "Properties"singleExpand
Section titled "singleExpand"Allows only one panel to be expanded at a time.
singleExpand: boolean Accessors
Section titled "Accessors"panels
Section titled "panels"Returns all of the accordions's direct igc-expansion-panel children.
get panels(): IgrExpansionPanelComponent[] Returns IgrExpansionPanelComponent[]
Methods
Section titled "Methods"hideAll
Section titled "hideAll"Hides all of the child expansion panels' contents.
hideAll(): Promise<void> Returns Promise<void>
showAll
Section titled "showAll"Shows all of the child expansion panels' contents.
showAll(): Promise<void> Returns Promise<void>
Events
Section titled "Events"onClosed
Section titled "onClosed"onClosed(args: CustomEvent<IgrExpansionPanelComponent>): void Parameters
- args:
CustomEvent<IgrExpansionPanelComponent>
Returns void
onClosing
Section titled "onClosing"onClosing(args: CustomEvent<IgrExpansionPanelComponent>): void Parameters
- args:
CustomEvent<IgrExpansionPanelComponent>
Returns void
onOpened
Section titled "onOpened"onOpened(args: CustomEvent<IgrExpansionPanelComponent>): void Parameters
- args:
CustomEvent<IgrExpansionPanelComponent>
Returns void
onOpening
Section titled "onOpening"onOpening(args: CustomEvent<IgrExpansionPanelComponent>): void Parameters
- args:
CustomEvent<IgrExpansionPanelComponent>