shadow
The Accordion
element allows you to view the contents in drop-down sections. Each section can be expanded or collapsed with a click, allowing users to quickly find and view the information they want. The component supports multiple selection, which means that multiple sections can be expanded at once. In addition, it allows you to set the initial index of the expanded section, which provides flexibility when initializing a component with default expanded content.
Description | An attribute that determines whether multiple sections can be expanded at the same time. |
Attribute | multiple |
Type | boolean |
Default | 0 |
Description | An attribute that sets the initial index of the extended section. |
Attribute | Index |
Type | number |
Default | 1000 |
Name | Description |
---|
wje-accordion-item:open | It is emitted when the accordion item is opened. |
Description | Collapses all accordion items except the one specified as the exception. |
Signature | (exception: HTMLElement) => Promise<void> |
Description | Search for all Accordion components within a group. |
Signature | getAccordions() => Accordion[] |
No CSS shadow parts available for this component.
No CSS custom properties available for this component.
No slots available for this component.