expander

The expander component is a collapsible element that initially displays a small portion of content, such as a name. Users can tap the arrow, aligned either to the left or right, to expand the component and reveal additional details. The expander is customizable, and the content inside can be configured using components such as forms, lists, or cards. This helps keep screens clean and organized while making additional information easily accessible.

Expander Preview
Expander Preview

Configuration options

Some properties are common to all components, see Common component properties for a list and their 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 jig. The following options are available in header:

Other options

divider

Added the ability to add a solid or transparent divider. Default setting is none.

expandIcon

Allows the ability to customize the alignment of the expander button. Default setting is right.

isInitiallyCollapsed

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

leftElement

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

variant

Determine the background color for header versus body using the variant property with plain or emphasized values. Default setting is emphasized.

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 in a header, entity-fields and bar-chart

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 with stage in header and entity-field

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 with variant, divider & expandIcon

This example includes four expander components, each configured with different options for the variant, divider, and expandIcon properties.

  1. Expander configured with a plain variant & transparent divider.

  2. Expander configured with emphasized variant & no divider.

  3. Expander configured with no variant and a solid divider.

  4. Expander configured with expandIcon aligned to the left, plain variant & no divider.

Expander options
Expander options

Last updated

Was this helpful?