Using a List component to display a single column of names : List « Components « Flex






Using a List component to display a single column of names

Using a List component to display a single column of names
     
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:List id="myFriends">
        <mx:String>A</mx:String>
        <mx:String>B</mx:String>
        <mx:String>C</mx:String>
    </mx:List>
</mx:Application>

   
    
    
    
    
  








Related examples in the same category

1.Populating List using ActionScriptPopulating List using ActionScript
2.Create List from ObjectsCreate List from Objects
3.Create a static List controlCreate a static List control
4.Set the verticalAlign for ListSet the verticalAlign for List
5.Set the variableRowHeight for ListSet the variableRowHeight for List
6.Set wordWrap and variableRowHeightSet wordWrap and variableRowHeight
7.Remove from ListRemove from List
8.Remove an item from listRemove an item from list
9.Replace item in a ListReplace item in a List
10.Call JavaScript when double clicked the List itemCall JavaScript when double clicked the List item
11.Set Icons for Items in a ListSet Icons for Items in a List
12.Double click to edit ListDouble click to edit List
13.Spark List Caret IndexSpark List Caret Index
14.Spark List with alternating Item ColorsSpark List with alternating Item Colors
15.List rollover colorList rollover color
16.List IconList Icon
17.A List control uses the iconFunction property to determine the icon to display for each itemA List control uses the iconFunction property to determine the icon to display for each item
18.Give a list of color namesGive a list of color names
19.If items do not fit in the size of the control, Flex automatically display scroll barsIf items do not fit in the size of the control, Flex automatically display scroll bars