The Accordion navigator container defines a sequence of child panels that contain containers. It displays the header of all the panels, but displays only one panel at a time. The Accordion container can greatly improve the look and navigation of a form.
MXML Syntax
The <mx:Accordion> container inherits all the properties of its parent classes, and the following properties:
<mx:Accordion
headerHeight="22"
historyManagement="true|false"
marginTop="-1"
marginBottom="-1"
openDuration="250"
openEasing="Specifies the tweening function used by the animation; no default value."
selectedIndex=""
selectedChild=""
textSelectedColor="#005F33"
verticalGap="-1"
change="Specifies a change event handler; no default value.">
...
child tags
...
/>
See Also
mx.controls.SimpleButton
mx.controls.Button
mx.effects.Tween
| Methods | |
| createChild(className, instanceName:String, props:Object) : MovieClip
Creates a child of the Accordion container. |
| createSegment(classOrSymbol, instanceName:String, labelStr:String, iconStr:String) : MovieClip
Creates a new segment in the accordion. |
| getHeaderAt(i:Number) : UIComponent
Returns the header object associated with the ith child. |
| Methods inherited from class mx.containers.Container |
Constructor
getViewMetrics
|
| Methods inherited from class mx.core.View |
init
draw
createChild
getChildAt
getChildIndex
setChildIndex
destroyAllChildren
destroyChild
destroyChildAt
getViewMetrics
|
| Methods inherited from class mx.core.UIComponent |
getFocus
setFocus
getFocusManager
|
| Properties | |
static | version:String
ComponentVersion is for internal use only. |
| historyManagement:Boolean
[Read-Write]
If true, enables history management. |
| selectedChild:UIObject
[Read-Write]
Name of the active container. |
| selectedIndex:Number
[Read-Write]
Index of the active container. |
| Properties inherited from class mx.core.View |
version
className
numChildren
|
| Properties inherited from class mx.core.UIComponent |
version
enabled
tabIndex
|
| Effects |
| Effects inherited from class mx.core.UIComponent |
showEffect
hideEffect
focusInEffect
focusOutEffect
|
| Effects inherited from class mx.core.UIObject |
creationCompleteEffect
moveEffect
resizeEffect
mouseDownEffect
mouseOverEffect
mouseOutEffect
mouseUpEffect
|
| Events | |
change | Broadcasts when the current view changes. The event object contains the following properties:
|
| Events inherited from class: mx.containers.Container |
childrenCreated
scroll
|
| Events inherited from class: mx.core.View |
childCreated
childIndexChanged
childDestroyed
|
| Events inherited from class: mx.core.UIComponent |
focusIn
focusOut
keyDown
keyUp
show
hide
valid
invalid
valueCommitted
|
| Styles | |
marginTop |
Type: Number
Format: Length
CSS Inheritance: no
Number of pixels between the container`s top border and its content area. The default value is -1. |
marginBottom |
Type: Number
Format: Length
CSS Inheritance: no
Number of pixels between the container`s bottom border and its content area. The default value is -1. |
verticalGap |
Type: Number
Format: Length
CSS Inheritance: no
Number of pixels between children in the vertical direction. The default value is -1 pixels. |
headerHeight |
Type: Number
Format: Length
CSS Inheritance: no
Height of the Accordion container buttons, in pixels. The default value is 22. |
openDuration |
Type: Number
Format: Time
CSS Inheritance: no
Duration, in milliseconds, of the transition from one child panel to another. The default is 250. |
textSelectedColor |
Type: Number
Format: Color
CSS Inheritance: yes
Color of selected text. The default is #005F33. |
openEasing |
Type: String
CSS Inheritance: no
Tweening function used by the animation. |
| Styles inherited from class mx.core.UIObject |
color
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textDecoration
textIndent
marginLeft
marginRight
horizontalGap
verticalGap
|
| Method Detail |
createChild(className, instanceName:String, props:Object) : MovieClip
Parameters
className - Name of the class.
instanceName - Instance name of the child.
props - Object that contains initialization properties.
createSegment(classOrSymbol, instanceName:String, labelStr:String, iconStr:String) : MovieClip
Parameters
classOrSymbol - Reference to a class, the linkage ID or a symbol, or file path or URL to the external content.
Note: Specify the class name without using double quotation marks; do not specify the component as a String.
instanceName - Instance name of the child.
labelStr - Text to display in the segment header.
iconStr - Icon to display in the segment header.
getHeaderAt(i:Number) : UIComponent
Parameters
i - Number that identifies the child.
| Property Detail |
historyManagement:Boolean
[Read-Write]
selectedChild:UIObject
[Read-Write]
selectedIndex:Number
[Read-Write]
static version:String