Package | ardisia.components.accordion |
Class | public class Accordion |
Inheritance | Accordion ViewStack spark.components.SkinnableContainer |
All direct children must extend the AccordionContainer class.
Explicitly size the Accordion.
View the technical documentation on the Ardisia Labs website for more information.
Default MXML PropertymxmlContentFactory
Property | Defined By | ||
---|---|---|---|
duration : Number = 150
The duration of effects that animate changes in the selectedIndex. | Accordion | ||
easer : IEaser
The default easer to apply to animations. | Accordion | ||
selectedChild : IVisualElement
The selected child element in the ViewStack. | ViewStack | ||
selectedIndex : int
The zero-based index of the currently visible child element. | ViewStack |
Method | Defined By | ||
---|---|---|---|
commitSelectedIndex(removeFromLayout:Boolean = true):void
Commit the selected index, update the visible element and update the
bindings. | ViewStack | ||
createChildren():void [override] | Accordion | ||
effectHandler(event:EffectEvent):void
Handles the end of resize effects. | Accordion | ||
elementHandler(event:Event):void
Handles events on child elements. | Accordion | ||
eventHandler(event:Event):void [override]
Handles events on the class. | Accordion | ||
selectElement(element:IVisualElement):void
Select the following element and initialize if necessary. | ViewStack | ||
setupDeferredContent():void
Setup the deferred content. | ViewStack |
duration | property |
public var duration:Number = 150
The duration of effects that animate changes in the selectedIndex.
Set to 0 to skip the animation.
The default value is 150
.
easer | property |
public var easer:IEaser
The default easer to apply to animations.
The default value is Sine(0.5)
.
createChildren | () | method |
override protected function createChildren():void
effectHandler | () | method |
protected function effectHandler(event:EffectEvent):void
Handles the end of resize effects.
Parameters
event:EffectEvent — the EffectEvent that triggered the handler
|
elementHandler | () | method |
protected function elementHandler(event:Event):void
Handles events on child elements.
Parameters
event:Event — the Event that triggered the handler
|
eventHandler | () | method |
override protected function eventHandler(event:Event):void
Handles events on the class.
Parameters
event:Event — the Event that triggered the handler
|