DataGroup with Data provider : DataGroup « Data Model « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Data Model » DataGroupScreenshots 
DataGroup with Data provider
DataGroup with Data provider
         

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                xmlns:s="library://ns.adobe.com/flex/spark">
    
    <mx:String id="txt">this is a test</mx:String>
    <s:DataGroup id="group" width="1000" height="100"
                 clipAndEnableScrolling="true"
                 itemRenderer="spark.skins.spark.DefaultItemRenderer">
        <s:dataProvider>
            <mx:ArrayCollection source="{txt.split(' ')}" />
        </s:dataProvider>
        
    </s:DataGroup>
    
    <s:VScrollBar viewport="{group}" height="100" />
    
</mx:Application>

   
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Associating a DataGroup container's dataProvider with an array of strings.
2.Use the DefaultItemRenderer with a DataGroup containerUse the DefaultItemRenderer with a DataGroup container
3.shows a DataGroup container where all its children are Flex components.shows a DataGroup container where all its children are Flex components.
4.Item renderer for DataGroupItem renderer for DataGroup
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
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.