A Tile container lays out its children in one or more vertical columns or horizontal rows, starting new rows or columns as necessary. The direction property determines whether the orientation of the layout is horizontal, which is the default, or vertical.
All Tile container cells are the same size. The cells of a Tile container are arranged in a square grid, in which each cell holds a single child component. For example, if you define 16 children in a Tile layout container, the Tile container is four cells wide and four cells high. If you define 13 children, the Tile container is also four cells wide and four cells high, although the last three cells in the fourth row will be empty.
MXML Syntax
The <mx:Tile> container inherits all the properties of its parent classes, and the following properties:
<mx:Tile
direction="horizontal|vertical"
horizontaAlign="left|center|right"
horizontalGap="6"
marginBottom="0"
marginTop="0"
tileHeight="Specifies Tile height; no default value"
tileWidth="Specifies Tile width; no default value">
verticalAlign="top|middle|bottom"
verticalGap="6"
...
child tags
...
/>
| Methods |
| 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 | |
| direction:String
[Read/Write]
Orientation of the container. |
| tileWidth:Number
[Read/Write]
Explicit width of all cells, overriding the default of the preferred width of the widest child. |
| tileHeight:Number
[Read/Write]
Explicit height of all cells, overriding the default of the preferred height of the tallest child. |
| 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 |
| 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 | |
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 0. |
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 0. |
horizontalGap |
Type: Number
Format: Length
CSS Inheritance: no
Number of pixels between children in the horizontal direction. The default value is 6. |
verticalGap |
Type: Number
Format: Length
CSS Inheritance: no
Number of pixels between children in the vertical direction. The default value is 6. |
horizontalAlign |
CSS Inheritance: no
Horizontal alignment of container children. The default is left. Possible values are left, center, and right. |
verticalAlign |
CSS Inheritance: no
Vertical alignment of container children. The default is top. Possible values are top, middle, and bottom. |
| Styles inherited from class mx.core.UIObject |
color
fontFamily
fontSize
fontStyle
fontWeight
textAlign
textDecoration
textIndent
marginLeft
marginRight
horizontalGap
verticalGap
|
| Property Detail |
direction:String
[Read/Write]
tileHeight:Number
[Read/Write]
tileWidth:Number
[Read/Write]