ComboBox prepopulated with list items : ComboBox Item « Components « Flex






ComboBox prepopulated with list items

ComboBox prepopulated with list items
       

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Panel title="My Application" paddingTop="10" paddingBottom="10"
        paddingLeft="10" paddingRight="10">
        <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
            <mx:ComboBox>
                <mx:dataProvider>
                    <mx:String>A</mx:String>
                    <mx:String>B</mx:String>
                    <mx:String>C</mx:String>
                </mx:dataProvider>
            </mx:ComboBox>
        </mx:VBox>
    </mx:Panel>
</mx:Application>

   
    
    
    
    
    
    
  








Related examples in the same category

1.Remove item at 0 position from a ComboBoxRemove item at 0 position from a ComboBox
2.Get Item index for a ComboBoxGet Item index for a ComboBox
3.Add Item to second position in a ComboBoxAdd Item to second position in a ComboBox
4.Add item to a ComboBoxAdd item to a ComboBox
5.Sort ComboBox itemsSort ComboBox items
6.ComboBox form itemComboBox form item