Flex Required Field Indicator
Ever wanted to create your own textual component that sits outside of a Flex Form (and FormItem tag) that still uses the same required field indicator?
After trying to duplicate the little red asterisk using styles or even creating my own graphically, I opted to use the same one that comes part of the Flex SDK inside Assets.swf:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalGap="0" verticalAlign="middle" horizontalAlign="right" height="18" width="100%" paddingBottom="0" paddingTop="0" styleName="requiredFieldLabel"> <mx:Image source="@Embed(source='Assets.swf',symbol='mx.containers.FormItem.Required')" height="7"/> <mx:Label text="indicates required field" styleName="requiredFieldLabel"/> </mx:HBox> |
Here’s what you’d see:
Categories: Adobe Flex
Thank you!
This is the first time I commented here and I must say that you give us genuine, and quality information for other bloggers! Great job.
p.s. You have a very good template for your blog. Where did you find it?
this theme is called “inove”
Hi!
How can I do to make the red asterisk appear to the right of an input text box in flex?
Regards
Easy…just swap the Image and Label tags. Since they both reside inside of an HBox (horizontal box), the first tag listed will appear left-most on the screen. So you want to write this instead:
Hi, I think that your example could Work for me but I dont understand how to use it. Can you explain to me. I need to indicate in all my requiered fields using an asterisk but I can´t use a form.
Thanks
Thanks a lot…..
Really informative blog.Much thanks again. Really Cool. free sex gifs
I view something really special in this internet site.
Thanks so much for the blog.Really thank you! Will read on
this is actually the fourth time i read the blog, good article as always! regards, Samui First House Hotel
This blog is without a doubt entertaining additionally factual. I have found many useful stuff out of this source. I ad love to return again and again. Thanks a lot!
Thanks a lot for this kind of details I had been exploring all Yahoo to locate it!
of course, study is paying off. Is not it good whenever you uncover an excellent article? My personal internet searching seem full.. thank you. Great ideas you have got here..
Thanks for sharing, this is a fantastic post.Really thank you! Really Cool.
Just read this I was reading through some of your posts on this site and I think this internet site is rattling informative ! Keep on posting.
Major thankies for the blog post. Much obliged.
its really really nice piece of writing on building up new webpage.
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature
The greatness of the power of nature