Set data for TabBar using and : dataProvider « Data Model « Flex






Set data for TabBar using and

Set data for TabBar using <mx:dataProvider> and <mx:TabBar>
          

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:TabBar>
        <mx:dataProvider>
            <mx:String>A</mx:String>
            <mx:String>B</mx:String>
            <mx:String>C</mx:String>
        </mx:dataProvider>
    </mx:TabBar>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Script section and dataProvider sectionScript section and dataProvider section
2.Create a Legend control is to bind a chart to it by using the dataProvider propertyCreate a Legend control is to bind a chart to it by using the dataProvider property
3.populating dataProvider by using the populating dataProvider by using the <mx:dataProvider/>
4.uses event handlers to add and remove container children by calling addItem()/removeItemAt() on dataProvider propertyuses event handlers to add and remove container children by calling addItem()/removeItemAt() on dataProvider property
5.Creating a TabBar control, use and tags to specify the text for each tabCreating a TabBar control, use <mx:dataProvider> and <fx:String> tags to specify the text for each tab
6.MultipleDataProviders.mxmlMultipleDataProviders.mxml
7.Change Service DataProviderChange Service DataProvider
8.dataProvider and DataGrid
9.A custom function to convert new data items to the format required by the data providerA custom function to convert new data items to the format required by the data provider