mmo-accordion
1 symbol · generated 30 Sep 2026
mmo-accordion
mmo-accordion.jhs:1Accordion element to display a list of accordions
- Extends
- CustomShadowElement
Index
| open | if true, the accordion is open | |
| open accessor | Get the open of the accordion | |
| init() | ||
| openAll() | Open all the accordions | |
| closeAll() | Close all the accordions | |
| title | the row that opens and closes the section | |
| (default) | the section itself, revealed when it is open | |
| .empty | the section has nothing to open: the row stays, the chevron and the body go | |
| .grid | lay the content out as a grid, with as many columns as the screen can carry | |
| .list | the titled-panel form: a filled header over a framed body | |
| .multiple | show the "open them all / close them all" button on the header row |
Attributes1
open
mmo-accordion.jhsif true, the accordion is open
open
Properties1
open
accessormmo-accordion.jhs:57Get the open of the accordion
- Type
boolean
Methods3
init()
mmo-accordion.jhs:31openAll()
mmo-accordion.jhs:80Open all the accordions
closeAll()
mmo-accordion.jhs:88Close all the accordions
Slots2
title
mmo-accordion.jhsthe row that opens and closes the section
<slot name="title">
(default)
mmo-accordion.jhsthe section itself, revealed when it is open
<slot>
CSS hooks4
.empty
mmo-accordion.jhsthe section has nothing to open: the row stays, the chevron and the body go
.empty
.grid
mmo-accordion.jhslay the content out as a grid, with as many columns as the screen can carry
.grid
.list
mmo-accordion.jhsthe titled-panel form: a filled header over a framed body
.list
.multiple
mmo-accordion.jhsshow the "open them all / close them all" button on the header row
.multiple