First i must tell that using the Form and its children components like the FormItem,FormHeader are very use full as they touch our requirement in all means, like they control the layout,validating the fields,mark/unmark fields.. and many more.So while working on i came across a requirement to mark my Label as a symbol of Compulsory Field[a RED asterisk] for the TextInputs next to it,more or like the indicator in the FormItem which is a child component of the Form Container. So i thought of using the FormItem itself but its not possible, its only a child component in the Form Container, means i cannot individually use that.I just want a Label With the Indication as Compulsory field[asterisk].So how to achieve this ??.
My second thought was to search the WEB ,may be some one might had the same requirement and done a Custom Component for it. But believe me i found nothing and nothing.
Then my Third thought was to make one. I Called It “Indicator Label” or ILabel.
So i created one , it came out very clean and as i required and its very much similar to the FormItem which is a sub-Class of Container Class and my ILabel is just sub-Class of the Label Class. There is much difference between the Container and the Label.
Description:
It has the following properties with Label Component Properties:
indicatorSkin –>refers to the skin used for the indication, Programmatic Skin or Graphical Skin.
indicatorGap–>refers to the Gap between the indicator and the Label text.
required–>indicator is required or not.default value true.
requiredChanged–>Event for the required property value change.
That’s my requirement.Just a Label with all these properties.Finally made it.
Now just sit back and enjoy this example.
Enjoy the Post.
, Leave any Comments for queries.
Posted by kumargandhi 
