Use labelField property of TabBar control to specify the property name containing the tab text : TabBar « Container « Flex






Use labelField property of TabBar control to specify the property name containing the tab text

Use labelField property of TabBar control to specify the property name containing the tab text
         

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:TabBar labelField="state">
        <mx:dataProvider>
            <mx:Object state="Alabama" data="Montgomery" />
            <mx:Object state="Alaska" data="Juneau" />
            <mx:Object state="Arkansas" data="Little Rock" />
        </mx:dataProvider>
    </mx:TabBar>
</mx:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.ArrayCollection as dataProvider for TabBarArrayCollection as dataProvider for TabBar
2. defines the text for each tab in the TabBar control.<mx:String> defines the text for each tab in the TabBar control.
3.itemClick event for TabBaritemClick event for TabBar
4.Spark TabBarSpark TabBar
5.TabBar ObjectTabBar Object
6.TabBar LabelTabBar Label
7.Populate a TabBar control from a variablePopulate a TabBar control from a variable
8.A handler for the itemClick event for this TabBar controlA handler for the itemClick event for this TabBar control