virtual class domkit::CardBox

sys::Obj
  dom::Elem
    domkit::Box
      domkit::CardBox

@Js

Source

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

See also: docDomkit

effect

Str? effect := null

Source

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 := 350.ms

Source

Duratin for effect animation to last.

make

new make()

Source

onAdd

protected virtual override Void onAdd(Elem c)

Source

onRemove

protected virtual override Void onRemove(Elem c)

Source

selIndex

virtual Int? selIndex

Source

Selected card index, or null if no children.

selItem

Elem? selItem()

Source

Selected card instance, or null if no children.