Accordion
Accordion is a UI component that allows you to expand and collapse multiple sections. It is mainly used for organizing information and making effective use of screen space.
Added in v4.0.0.
Properties
| No | Item | Input Value | Default Value | Action Property | Type | Action Default Value | Description |
|---|---|---|---|---|---|---|---|
| 1 | ID | String | Auto | id | string | Auto | The [id] property cannot be set by actions. |
| 2 | Width | String | 600 | width | string | 600 | Width of the accordion |
| 3 | Height | String | 200 | height | string | 200 | Height of the accordion |
| 4 | X | String | x | string | |||
| 5 | Y | String | y | string | |||
| 6 | Visibility | Boolean | On | visibility | boolean | true | |
| 7 | Color | String Color Picker | color | string | Text color of the accordion title. If empty, the theme’s Primary Text color is applied. | ||
| 8 | BackgroundColor | String Color Picker | backgroundColor | string | Background color of the entire accordion. If empty, the theme’s Background Paper color is applied. | ||
| 9 | Multi Expand | Boolean | On | multiExpand | boolean | true | If Off, opening one section will close the others. |
Adding Accordion Items
An accordion item refers to a single expandable section within the accordion component.
You can add accordion items to the accordion component by following the steps below.
- Open the property dialog of the accordion component.
- Click the + icon on the accordion bar in the left pane.
- An accordion item will be added to the left pane.