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.

Configuration options
Some properties are common to all components, see Common component properties for a list and their configuration options.
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:
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

Expander with variant, divider & expandIcon
This example includes four expander components, each configured with different options for the variant, divider, and expandIcon properties.
Expander configured with a
plainvariant &transparentdivider.Expander configured with
emphasizedvariant & no divider.Expander configured with no variant and a
soliddivider.Expander configured with expandIcon aligned to the
left,plainvariant & no divider.

Last updated
Was this helpful?