Skip to main content

Expansion Panel


The "Expansion Panel" is used for displaying multiple components within a collapsible/expandable container. Ideally used for grouping related elements together and making them more accessible to the users. The header of the Expansion Panel is clickable, which is clicked in order to expand or collapse the panel's content. Similar to a Grid, the Expansion Panel too has layout properties that let you customize the spacing and placement of the components.

ExpansionPanel

ExpansionPanel

API Methods

deleteAsset

Deletes the asset with a specific ID.

deleteAsset(assetInstanceID: string): void

importAsset

Imports the asset with a specific ID.

importAsset(assetId: string, {bindPrefix: string, after?: string}): string

setLabel

Sets a Label for the component.

setLabel(label: string): void

setReadOnly

Sets the ReadOnly flag for this component.

setReadOnly(readOnly: boolean): void

setVisibility

Sets the Visibility flag for this component.

setVisibility(visible: boolean): void

setVisibilityCondition

Sets the visibility condition for this component.

setVisibilityCondition(condition: string): void

Event Handlers

Event handlers allow you to set triggers for various actions based on the fired events. They are as follows:

onToggleCollapse

onToggleCollapse - Sets the function to be called whenever the component is toggled between its expanded and collapsed states.