shadow
Element Accordion
umožňuje zobraziť obsah v rozbaľovacích sekciách. Každá sekcia môže byť rozbalená alebo zbalená kliknutím, čo umožňuje používateľom rýchlo nájsť a zobraziť požadované informácie. Komponent podporuje viacnásobný výber, čo znamená, že môže byť naraz rozbalených viacero sekcií. Okrem toho umožňuje nastaviť počiatočný index rozbalenej sekcie, čo poskytuje flexibilitu pri inicializácii komponentu s predvoleným rozbaleným obsahom.
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.