Show the FormItem container definitions : FormItem « Components « 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 » Components » FormItemScreenshots 
Show the FormItem container definitions
Show the FormItem container definitions
          

<!--
Code from Flex Documentation "Using Adobe Flex 4".

This user guide is licensed for use under the terms of the Creative Commons Attribution 
Non-Commercial 3.0 License. 

This License allows users to copy, distribute, and transmit the user guide for noncommercial 
purposes only so long as 
  (1proper attribution to Adobe is given as the owner of the user guide; and 
  (2any reuse or distribution of the user guide contains a notice that use of the user guide is governed by these terms. 
The best way to provide notice is to include the following link. 
To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/

-->


<!-- containers\layouts\FormComplete.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:mx="library://ns.adobe.com/flex/mx"
    xmlns:s="library://ns.adobe.com/flex/spark">
    <fx:Script>
         
        private function submitForm():void 
        // Handle the form submission. 
        
      
    </fx:Script>
    <mx:Form id="myForm" width="400">
        <mx:FormHeading label="Billing Information" />
        <mx:FormItem label="First Name">
            <mx:TextInput id="fname" width="100%" />
        </mx:FormItem>
        <mx:FormItem label="Last Name">
            <mx:TextInput id="lname" width="100%" />
        </mx:FormItem>
        <mx:FormItem label="Address">
            <mx:TextInput id="addr1" width="100%" />
            <mx:TextInput id="addr2" width="100%" />
        </mx:FormItem>
        <mx:FormItem label="City / State" direction="vertical">
            <mx:TextInput id="city" />
            <mx:ComboBox id="st" width="75">
                <mx:ArrayList>
                    <fx:String>MA</fx:String>
                    <fx:String>NH</fx:String>
                    <fx:String>RI</fx:String>
                </mx:ArrayList>
            </mx:ComboBox>
        </mx:FormItem>
        <mx:FormItem label="ZIP Code">
            <mx:TextInput id="zip" width="100" />
        </mx:FormItem>
        <mx:FormItem label="Country">
            <mx:ComboBox id="cntry">
                <mx:ArrayList>
                    <fx:String>USA</fx:String>
                    <fx:String>UAE</fx:String>
                    <fx:String>UAW</fx:String>
                </mx:ArrayList>
            </mx:ComboBox>
        </mx:FormItem>
        <mx:FormItem>
            <mx:HRule width="200" height="1" />
            <mx:Button label="Submit Form" click="submitForm();" />
        </mx:FormItem>
    </mx:Form>
</s:Application>

   
    
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Label for FormItemLabel for FormItem
2.CheckBox FormItemCheckBox FormItem
3.Layout FormItem horizontallyLayout FormItem horizontally
4.FormItem containers take an input control and provide it with a labelFormItem containers take an input control and provide it with a label
5.FormItem font style and weightFormItem font style and weight
6.Creating mandatory FormItemsCreating mandatory FormItems
7.Set the FormItem label color to dark blue and its font size to 20 pixelsSet the FormItem label color to dark blue and its font size to 20 pixels
w___w_w__.j_a_v__a_2_s_.__c___o_m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.