Configuring an accordion
The accordion has a range of configurable options that allow us to change the default behavior of the widget. The following table lists the available options, their default values, and gives a brief description of their usage:
Option |
Default value |
Use |
---|---|---|
|
|
Sets the active heading on page load. |
|
|
Controls the animation of panels. |
|
|
Allows all of the content panels to be closed at the same time. |
|
|
Disables the widget. |
|
|
Specifies the event on headers that trigger drawers to open. |
|
|
Sets the selector for header elements. Although it looks complex, this is a standard jQuery selector that simply targets the first child within every odd |
|
|
Controls the height of the accordion and each panel |
|
|