class

CardBox

@Js
class CardBox : Box

CardBox lays out child elements as a stack of cards, where only one card may be visible at a time.

See also: docDomkit

constructors make

fields effectDur

Duratin for effect animation to last

effect

Transition effect to apply when selIndex is changed

selIndex

Selected card index, or null if no children

methods selItem

Selected card instance, or null if no children

onRemove

onAdd

effect Str? : effect

Transition effect to apply when selIndex is changed. If null, no effect is applied.

Valid values are:

  • slideLeft: animate cards sliding in from right-to-left
  • slideRight: animate cards sliding in from left-to-right

effectDur Duration : effectDur

Duratin for effect animation to last.

make new make()

onAdd virtual Void onAdd(Elem c)

onRemove virtual Void onRemove(Elem c)

selIndex virtual Int? : selIndex

Selected card index, or null if no children.

selItem Elem? selItem()

Selected card instance, or null if no children.

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