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.
- Element
-
igc-expansion-panel
- 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 = false Defined in src/components/expansion-panel/expansion-panel.ts:120
indicatorPosition
Section titled "indicatorPosition"The indicator position of the expansion panel.
indicatorPosition: ExpansionPanelIndicatorPosition = 'start' Defined in src/components/expansion-panel/expansion-panel.ts:127
Whether the panel is expanded and its content is visible.
open: boolean = false Defined in src/components/expansion-panel/expansion-panel.ts:112
tagName
Section titled "tagName"The tagName read-only property of the Element interface returns the tag name of the element on which it's called.
tagName: "igc-expansion-panel" = 'igc-expansion-panel' Defined in src/components/expansion-panel/expansion-panel.ts:69
Methods
Section titled "Methods"connectedCallback
Section titled "connectedCallback"connectedCallback(): void Defined in src/components/expansion-panel/expansion-panel.ts:144
Returns void
Hides the panel content.
hide(): Promise<boolean> Defined in src/components/expansion-panel/expansion-panel.ts:188
Returns Promise<boolean>
Shows the panel content.
show(): Promise<boolean> Defined in src/components/expansion-panel/expansion-panel.ts:198
Returns Promise<boolean>
toggle
Section titled "toggle"Toggles the panel open/close state.
toggle(): Promise<boolean> Defined in src/components/expansion-panel/expansion-panel.ts:178