class

AccordionBox

@Js
class AccordionBox : Box

AccordionBox displays collapsible content panels for presenting information in a limited amount of vertical space, where the header element is used to collapse or expand the child content.

See also: docDomkit

constructors make

methods isExpanded

Return true if given group is expanded, or false if not

expand

Set expanded state for given group

addGroup

Add a new group with given header and child nodes

addGroup This addGroup(Elem header, Elem[] kids, Bool expanded)

Add a new group with given header and child nodes. Optionally configure default expansion state with expanded paramter (defaults to collapsed).

expand Void expand(Int groupIndex, Bool expanded)

Set expanded state for given group.

isExpanded Bool isExpanded(Int groupIndex)

Return true if given group is expanded, or false if not.

make new make()

Haxall 4.0.5 ∙ 24-Feb-2026 14:33 EST