layout.CardSpec Class
Spec for "card" layout. These are the available configuration options for the card layout.
Item Index
Attributes
Attributes
animate
Boolean
True to enable animation effects. This option should be set for the parent.
Default: false
animateX
Boolean
True to animate in x-direction(left-right). false to animate in y-direction, (up and down)
Default: : true
animationDuration
Number
Time for animation in seconds. This option should be set for the parent.
Default: 0.25
type
String
Type attribute should be set to "card" for parent
Example:
var w = new ludo.Window({
width:500,height:500,
layout:{
type:'card',
animate:true,
animationDuration:.3,
animateX:false
},
children:[
{ html:'Child A' },
{ html:'Child B' },
{ html:'Child C', layout:{ visible: true } },
{ html:'Child D' },
]
});
visible
Boolean
Option for children inside card layout. Children inside a "card" layout are by default hidden. Set visible to true to set initial shown card/child view. If not set, first card will be shown.
Default: false