- Index
- »
- fan.domkit
- »
- FlipBox
FlipBox
@Js
class FlipBox : Box
FlipBox displays content on a 3D card, and allows transitiong between the front and back using a flipping animation.
Back card content
Front card content
Is card showing back content
Show front card content if not already visible
Is card showing front content
Flip content, and invoke the specified callback when the flip animation has completed
Show back card content if not already visible
Elem? : back
Back card content.
Void flip(|This|? onComplete)
Flip content, and invoke the specified callback when the flip animation has completed.
Elem? : front
Front card content.
Bool isBack()
Is card showing back content.
Bool isFront()
Is card showing front content.
new make()
This toBack()
Show back card content if not already visible.
This toFront()
Show front card content if not already visible.