mx.containers
Class
Form
class
Form
extends mx.containers.ContainerThe Form container lets you control the layout of a form, mark form fields as required or optional, handle error messages, and bind your form data to the Flex data model in order to perform data checking and validation. Also, you can apply style sheets to configure the appearance of your forms.
The <mx:Form> tag defines the container for the entire form. Use the <mx:FormHeading> tag and the <mx:FormItem> tag to define content. You can also insert other types of containers in a Form container.
MXML Syntax
The <mx:Form> tag inherits all the properties of its parent classes, and the following properties:
<mx:Form
indicatorGap="16"
labelWidth="Default value is length of longest label in the Form."
marginBottom="16"
marginLeft="16"
margingRight="16"
marginTop="16"
verticalGap="6">
...
child tags
...
/>
See Also
mx.containers.FormHeading
mx.containers.FormItem
marginBottom |
Type: Number
Format: Length
CSS Inheritance: no
Number of pixels between the container`s bottom border and its content area. The default value is 16. |
marginTop |
Type: Number
Format: Length
CSS Inheritance: no
Number of pixels between the container`s top border and its content area. The default value is 16. |
verticalGap |
Type: Number
Format: Length
CSS Inheritance: no
Number of pixels between children in the vertical direction. The default is 8. |
labelWidth |
Type: Number
Format: Length
CSS Inheritance: yes
Width of the form labels. The default is the length of the longest label in the form. |
indicatorGap |
Type: Number
Format: Length
CSS Inheritance: yes
Number of pixels between the label and child components. The default value is 14. |