Home Flex Container Form Layout Container



Form Layout Container
Posted on: November 14, 2009 at 12:00 AM
Form container is used to lay the child elements as form elements.

Form Layout Container

     

Form container is used to lay the child elements as form elements. Using Form container you can create label also for input fields. FormHeader and FormItem components can be used within the Form container. FormHeader can be used for adding header information. You will put components like input box within FormItem. Label for the item can also be specified in label attribute of FormItem component.

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">

<mx:Form width="300" height="150" backgroundColor="white">

<mx:FormHeading label="Add Article"/>

<mx:FormItem label="Article Name:">

<mx:TextInput/>

</mx:FormItem>

<mx:FormItem label="Author Name:">

<mx:TextInput/>

</mx:FormItem>

<mx:FormItem>

<mx:Button label="Submit"/>

</mx:FormItem>

</mx:Form>

</mx:Application>

Output:



Download the code:
FormLayoutContainer.zip

Related Tags for Form Layout Container:


More Tutorials from this section

Ask Questions?    Discuss: Form Layout Container  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.