Accordion

Overview

A container with a set of collapsible cards to separate different content views. The cards can be customized separately and have different visibility settings.

Properties

Name
Type
Description

name

string

Component name

collapsed

collapsedChanged[]

State of collapsed items

value

value

Current component value

children

children

Children components

valid

boolean

Validation state

Methods

Name
Parameters
Returns
Description

collapse()

index: number

void

Collapse accordion item

expand()

index: number

void

Expand accordion item

toggleCollapsed()

index: number

void

Toggle accordion item's collapsed state

collapseAll()

โ€“

void

Collapse all accordion items

expandAll()

โ€“

void

Expand all accordion items

setValue()

data: object

void

Set component data

resetValue()

โ€“

void

Reset component to the initial value

validate()

โ€“

void

Trigger component validation

resetValidation()

โ€“

void

Clear validation errors

Triggers

Name
Description

On Collapse Changed

Triggered when an accordion item's collapse state changes

On Header Click

Triggered when an accordion header is clicked

On Init

Triggered when the component is initialized

Last updated

Was this helpful?