type

FlipBox

src @Js
class FlipBox : Box

FlipBox displays content on a 3D card, and allows transitiong between the front and back using a flipping animation.

constructors

fields

back

Back card content.

front

Front card content.

methods

flip

Flip content, and invoke the specified callback when the flip animation has completed.

isBack

Is card showing back content.

isFront

Is card showing front content.

toBack

Show back card content if not already visible.

toFront

Show front card content if not already visible.

Slot Details

back

src Elem? back

Back card content.

flip

src Void flip(|This|? onComplete := null)

Flip content, and invoke the specified callback when the flip animation has completed.

front

src Elem? front

Front card content.

isBack

src Bool isBack()

Is card showing back content.

isFront

src Bool isFront()

Is card showing front content.

make

src new make()

toBack

src This toBack()

Show back card content if not already visible.

toFront

src This toFront()

Show front card content if not already visible.