virtual class domkit::AccordionBox

sys::Obj
  dom::Elem
    domkit::Box
      domkit::AccordionBox

@Js

Source

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

addGroup

This addGroup(Elem header, List<Elem> kids, Bool expanded := false)

Source

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)

Source

Set expanded state for given group.

isExpanded

Bool isExpanded(Int groupIndex)

Source

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

make

new make()

Source