Some properties are common to all UI Flex Components.
Properties:
1). color=”specify any color “ -Color of text in the component, one way is like GREEN, YELLOW, RED and another way is #2211FF, #AABBCC
2). fontSize=”Specify pixel” -Height of the text, in pixels. You give any number.
3). fontStyle=Determines whether the text is italic font. Recognized values are "normal" and "italic".
4). fontWeight=Determines whether the text is boldface. Recognized values are normal and bold. The default value for Button controls is bold. The default value for all other controls is normal.
To understand the properties of the Label and TextInput UI Components.
Label Properties:
Label Properties
Id=”String” ID of the component. This value becomes the instance name of the object and should not contain any white space or special characters. Each component throughout an application should have a unique id.
Text=”string” Specifies the plain text displayed by this control. Its appearance is determined by the CSS styles of this Label control.
Color=”color” Color of text in the component
FontFamily=”String” Name of the font to use. Unlike in a full CSS implementation, comma-separated lists are not supported. You can use any font family name. If you specify a generic font name, it is converted to an appropriate device font. The default font for the Halo theme is "Verdana". The default font for the Spark theme is "Arial".
FontSize=”Number” Height of the text, in pixels. In the Halo theme, the default value is 10 for all controls except the ColorPicker control. For the Halo themed ColorPicker control, the default value is 11. In the Spark theme, the default value is 12 for all controls except the ColorPicker control. For the Spark themed ColorPicker control, the default value is 11.
FontStyle=”String” Determines whether the text is italic font. Recognized values are "normal" and "italic".
FontWeight=”String” Determines whether the text is boldface. Recognized values are normal and bold. The default value for Button controls is bold. The default value for all other controls is normal.
TextAlign=”String” Alignment of text within a container. Possible values are "left", "right", or "center".
The default value for most components is "left". For the FormItem component, the default value is "right". For the Button, LinkButton, and AccordionHeader components, the default value is "center", and this property is only recognized when the labelPlacement property is set to "left" or "right". If labelPlacement is set to "top" or "bottom", the text and any icon are centered.
TextDecoration=”String” Determines whether the text is underlined. Possible values are "none" and "underline".
Tooltip=”string” Text to display in the ToolTip.
TextInput properties
Id=”String”ID of the component. This value becomes the instance name of the object and should not contain any white space or special characters. Each component throughout an application should have a unique id.
BorderColot=”color” Color of the border
BorderVisible=”Boolean” Visibility of the border.
Color=”color” Color of text in the component
DisplayAsPassword=”Boolean” Indicates whether this control is used for entering passwords. If true, the field does not display entered text, instead, each text character entered into the control appears as the character "*".
Visible=”Boolean” Whether or not the display object is visible. Display objects that are not visible are disabled. For example, if visible=false for an InteractiveObject instance, it cannot be clicked.
When setting to true, the object dispatches a show event. When setting to false, the object dispatches a hide event. In either case the children of the object does not emit a show or hide event unless the object has specifically written an implementation to do so.
Checkbox Properties
Id=”String” ID of the component.
CornerRadius=”Number” Radius of component corners. The following components support this style: Alert, Button, ComboBox, LinkButton, MenuBar,
Lable=”String” Text to appear on the Button control.
Selected=”Boolean” Indicates whether a toggle button is toggled on (true) or off (false). This property can be set only if the toggle property is set to true.