blob: 08a7f6431dc1b92aaaed03d341f96ebed1e65bd7 [file] [log] [blame]
{ "type": "class",
"qname": "mx.containers.GridItem",
"baseClassname": "mx.containers.HBox"
,
"description": "The GridItem container defines a grid cell in GridRow container. (The GridRow container, in turn, defines a row in a Grid container.) The GridItem container can contain any number of children, which are laid out as in an HBox container. If you do not want HBox layout, create a container, such as a VBox container, as a child of the GridItem control and put other components in this child container. <p>GridItem containers have the following default sizing characteristics:</p> <table class=&quot;innertable&quot;> <tr> <th>Characteristic</th> <th>Description</th> </tr> <tr> <td>Height of each row and each cell</td> <td>The default or explicit height of the tallest item in the row. If a GridItem container does not have an explicit size, its default height is the default or explicit height of the child in the cell.</td> </tr> <tr> <td>Width of each column and each cell</td> <td>The default or explicit width of the widest item in the column. If a GridItem container doed not have an explicit width, its default width is the default or explicit width of the child in the cell.</td> </tr> <tr> <td>Gap between rows and columns</td> <td>Determined by the horizontalGap and verticalGap properties of the Grid class. The default value for both gaps is 6 pixels.</td> </tr> <tr> <td>Default padding</td> <td>0 pixels for the top, bottom, left, and right values, for all three container classes.</td> </tr> </table> <p>The <code>&lt;mx:GridItem&gt;</code> tag must be a child of the <code>&lt;GridRow&gt;</code> tag, which defines a grid row. The <code>&lt;mx:GridItem&gt;</code> container inherits the tag attributes of its superclass, and adds the following tag attributes.</p> <pre>\\n &lt;mx:Grid&gt;\\n &lt;mx:GridRow&gt;\\n &lt;mx:GridItem\\n rowSpan=&quot;1&quot;\\n colSpan=&quot;1&quot;>\\n <i>child components</i>\\n &lt;/mx:GridItem&gt;\\n ...\\n &lt;/mx:GridRow&gt;\\n ...\\n &lt;/mx:Grid&gt;\\n </pre>",
"tags": [
{ "tagName": "includeExample",
"values": ["examples/GridLayoutExample.mxml"]},
{ "tagName": "see",
"values": ["mx.containers.Grid", "mx.containers.GridRow"]},
{ "tagName": "mxml",
"values": []},
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Flex 3"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"members": [
{ "type": "method",
"qname": "mx.containers.GridItem",
"namespace": "",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Constructor.",
"tags": [
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Flex 3"]},
{ "tagName": "langversion",
"values": ["3.0"]} ],
"return": "",
"params": []}
,
{ "type": "accessor",
"access": "read-write",
"return": "int",
"qname": "colSpan",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Number of columns of the Grid container spanned by the cell.",
"tags": [
{ "tagName": "default",
"values": ["1"]},
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Flex 3"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]},
{ "type": "accessor",
"access": "read-write",
"return": "int",
"qname": "rowSpan",
"namespace": "public",
"bindable": [],
"details": [],
"deprecated": {},
"description": "Number of rows of the Grid container spanned by the cell. You cannot extend a cell past the number of rows in the Grid.",
"tags": [
{ "tagName": "default",
"values": ["1"]},
{ "tagName": "playerversion",
"values": ["Flash 9", "AIR 1.1"]},
{ "tagName": "productversion",
"values": ["Flex 3"]},
{ "tagName": "langversion",
"values": ["3.0"]} ]}]
}