The accordion exposes three custom events, which are listed in the following table:
Event |
Triggered when… |
---|---|
|
The active header has changed. |
|
The active header is about to change |
|
The widget has been created |
The activate
event is triggered every time the active header (and its associated content panel) is changed. It fires at the end of the content panel's opening animation, or if animations are disabled, immediately (but still after the active panel has been changed).
The beforeActivate
event is fired as soon as the new header is selected, that is, before the opening animation (or before the active panel has changed, if animations are disabled). The create
event is fired as soon as the widget has been initialized.