Shows a header with a title and a subtitle, and content that the user can expand and collapse. Find-in-page, a text fragment or a link to an element in the content opens a collapsed panel that is not disabled.
- Slots
-
default— Renders the default content of the panel. -
title— Renders the title of the panel header. -
subtitle— Renders the subtitle of the panel header. -
indicator— Renders the expand/collapse indicator. -
indicator-expanded— Renders the expanded state of the indicator.
- CSS Parts
-
header— The container of the expansion indicator, title and subtitle. -
title— The title container. -
subtitle— The subtitle container. -
indicator— The indicator container. -
content— The expansion panel's content wrapper.
Properties
Section titled "Properties"disabled
Section titled "disabled"Whether the panel is disabled. A disabled panel does not respond to user interaction.
disabled: boolean indicatorPosition
Section titled "indicatorPosition"The indicator position of the expansion panel.
indicatorPosition: ExpansionPanelIndicatorPosition Methods
Section titled "Methods"Hides the panel content.
hide(): Promise<boolean> Returns Promise<boolean>
Shows the panel content.
show(): Promise<boolean> Returns Promise<boolean>
toggle
Section titled "toggle"Toggles the panel open/close state.
toggle(): Promise<boolean> Returns Promise<boolean>
Events
Section titled "Events"onClosed
Section titled "onClosed"Emitted after the expansion panel is closed.
onClosed(args: CustomEvent<IgrExpansionPanelComponent>): void Parameters
- args:
CustomEvent<IgrExpansionPanelComponent>
Returns void
onClosing
Section titled "onClosing"Emitted before the user closes the panel. Cancelable.
onClosing(args: CustomEvent<IgrExpansionPanelComponent>): void Parameters
- args:
CustomEvent<IgrExpansionPanelComponent>
Returns void
onOpened
Section titled "onOpened"Emitted after the expansion panel is opened.
onOpened(args: CustomEvent<IgrExpansionPanelComponent>): void Parameters
- args:
CustomEvent<IgrExpansionPanelComponent>
Returns void
onOpening
Section titled "onOpening"Emitted before the user opens the panel. Cancelable.
onOpening(args: CustomEvent<IgrExpansionPanelComponent>): void Parameters
- args:
CustomEvent<IgrExpansionPanelComponent>