Associating a DataGroup container's dataProvider with an array of strings. : DataGroup « Data Model « Flex






Associating a DataGroup container's dataProvider with an array of strings.

   
<?xml version="1.0" encoding="utf-8"?>
<mx:Application 
    xmlns:s="library://ns.adobe.com/flex/spark" 
    xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        
        import mx.collections.ArrayCollection;
        [Bindable]
        public var someData:ArrayCollection = new ArrayCollection(["one","two","three"]);
      
    </mx:Script>
    <s:DataGroup dataProvider="{someData}">
        <s:layout>
            <s:HorizontalLayout/>
        </s:layout>
    </s:DataGroup>
</mx:Application>

   
    
    
  








Related examples in the same category

1.Use the DefaultItemRenderer with a DataGroup containerUse the DefaultItemRenderer with a DataGroup container
2.shows a DataGroup container where all its children are Flex components.shows a DataGroup container where all its children are Flex components.
3.Item renderer for DataGroupItem renderer for DataGroup
4.DataGroup with Data providerDataGroup with Data provider
5.Control DataGroup widthControl DataGroup width
6.TitleLayout for DataGroupTitleLayout for DataGroup
7.DataGroup item added eventDataGroup item added event
8.DataGroup item removed eventDataGroup item removed event
9.Lazily Create and Recycle ChildrenLazily Create and Recycle Children
10.LayOut Children Using Rows and ColumnsLayOut Children Using Rows and Columns
11.Create a Custom 3D LayoutCreate a Custom 3D Layout