{ "type": "class", | |
"qname": "spark.components.TabBar", | |
"baseClassname": "spark.components.supportClasses.ListBase" | |
, | |
"description": "The TabBar class displays a set of identical tabs. One tab can be selected at a time, and the first tab is selected by default. The TabBarSkin class arranges the tabs in a single row. Use the TabBar <code>cornerRadius</code> style to configure the corner radius of the tabs. <p>The set of tabs is defined by the <code>dataProvider</code> property. The appearance of the TabBar is defined by the TabBarSkin class. The appearance of each tab is defined by the TabBarButtonSkin class.</p> <p>You can use the TabBar control to set the active child of a ViewStack container, as the following example shows:</p> <p><b>Note: </b>The Spark list-based controls (the Spark ListBase class and its subclasses such as ButtonBar, ComboBox, DropDownList, List, and TabBar) do not support the BasicLayout class as the value of the <code>layout</code> property. Do not use BasicLayout with the Spark list-based controls.</p> <pre>\\n <s:TabBar dataProvider="{myViewStack}"/>\\n \\n <mx:ViewStack id="myViewStack"\\n borderStyle="solid">\\n \\n <s:NavigatorContent id="search" label="Search">\\n <s:Label text="Search Screen"/>\\n </s:NavigatorContent>\\n \\n <s:NavigatorContent id="custInfo" label="Customer Info">\\n <s:Label text="Customer Info"/>\\n </s:NavigatorContent>\\n \\n <s:NavigatorContent id="accountInfo" label="Account Info">\\n <s:Label text="Account Info"/>\\n </s:NavigatorContent>\\n </mx:ViewStack> </pre> <p>The TabBar container has the following default characteristics:</p> <table class="innertable"> <tr><th>Characteristic</th><th>Description</th></tr> <tr><td>Default size</td><td>Large enough to display the tabs</td></tr> <tr><td>Minimum size</td><td>0 pixels</td></tr> <tr><td>Maximum size</td><td>10000 pixels wide and 10000 pixels high</td></tr> </table> attributes of its superclass and adds the following tag attributes:</p> <pre>\\n <s:TabBar\\n <b>Styles</b>\\n cornerRadius="4"\\n />\\n </pre>", | |
"tags": [ | |
{ "tagName": "includeExample", | |
"values": ["examples/TabBarExample.mxml"]}, | |
{ "tagName": "see", | |
"values": ["mx.containers.ViewStack", "spark.skins.spark.TabBarSkin", "spark.skins.spark.TabBarButtonSkin"]}, | |
{ "tagName": "mxml", | |
"values": ["<p>The <code><s:TabBar></code> tag inherits all of the tag"]}, | |
{ "tagName": "playerversion", | |
"values": ["Flash 10", "AIR 1.5"]}, | |
{ "tagName": "productversion", | |
"values": ["Flex 4"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ], | |
"members": [ | |
{ "type": "method", | |
"qname": "spark.components.TabBar", | |
"namespace": "", | |
"bindable": [], | |
"details": [], | |
"deprecated": {}, | |
"description": "Constructor.", | |
"tags": [ | |
{ "tagName": "playerversion", | |
"values": ["Flash 10", "AIR 1.5"]}, | |
{ "tagName": "productversion", | |
"values": ["Flex 4"]}, | |
{ "tagName": "langversion", | |
"values": ["3.0"]} ], | |
"return": "", | |
"params": []} | |
, | |
{ "type": "accessor", | |
"access": "read-write", | |
"return": "Number", | |
"qname": "measuredWidth", | |
"namespace": "public", | |
"bindable": [], | |
"details": ["override"], | |
"deprecated": {}, | |
"description": "", | |
"tags": [ | |
{ "tagName": "private", | |
"values": []} ]}] | |
} |