Components

expander

4min

The expander is a collapsible component with a small amount of content initially visible, such as a name, and additional content will be visible after it is opened. An expander is expanded by clicking on the arrow that will appear on the right side of the component.

Expander Preview
Expander Preview


Configuration options



Core structure



children

Define the content of the expander. The following components can be used in the expander:

header

centerElement - what is initially visible in your . The following options are available in header:

Other options



isInitiallyCollapsed

false - expander is not collapsed. true - If the expander is initially collapsed. True is the default setting.

leftElement

Add a left element, for example, an ordering number or avatar.

Actions



onContentPress

Action triggered while pressing on the content in the expander. Use IntelliSense (ctrl+space) to see the available list of actions.

Examples and code snippets 

Expander with titles
Expander with titles

Expander with bar-chart & entity-fields
Expander with bar-chart & entity-fields


Examples: See the full example using static data in GitHub. See the full example using dynamic data in GitHub.

Datasource: See the full datasource for dynamic data in GitHub.

expander (static)
expander (dynamic)
datasources (dynamic)

Expander with stage
Expander with stage

Expander with stage & entity
Expander with stage & entity


Examples: See the full example using static data in GitHub. See the full example using dynamic data in GitHub

Datasource: See the full datasource for dynamic data in GitHub.

expander-trip (static)
expander-trip (dynamic)
datasources (dynamic)




Updated 05 Aug 2024
Doc contributor
Did this page help you?