type

FlipBox

@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

Elem? back

Back card content.

flip

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

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

front

Elem? front

Front card content.

isBack

Bool isBack()

Is card showing back content.

isFront

Bool isFront()

Is card showing front content.

make

new make()

toBack

This toBack()

Show back card content if not already visible.

toFront

This toFront()

Show front card content if not already visible.