Relax Breath of Solution.Community tech blog of Sameera Thilakasiri - Consultant UI, UX, RWD Specialist/ Interactive Designer

Just I wanted.. Do you?…

Customizing a Flex TextInput control’s error color

Posted on February 7, 2010 | No Comments

The following example shows how you can customize a Flex TextInput control’s error color and error string using the errorColor style and errorString property.

<?xml version="1.0"     encoding="utf-8"?>
&lt;mx:Application <a href="http://jtc-enterprises.com/images/">buy cialis tadalafil</a>      xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        layout=&quot;vertical&quot;
              verticalAlign=&quot;middle&quot;
          backgroundColor=&quot;white&quot;&gt;

          &lt;mx:ApplicationControlBar dock=&quot;true&quot;&gt;
              &lt;mx:Label text=&quot;errorColor:&quot; /&gt;
        &lt;mx:ColorPicker   id=&quot;colorPicker&quot; /&gt;
    &lt;/mx:ApplicationControlBar&gt;

      &lt;mx:Form&gt;
          &lt;mx:FormItem   label=&quot;text:&quot;     required=&quot;true&quot;&gt;
                  &lt;mx:TextInput     id=&quot;textInput&quot;
                    errorColor=&quot;{colorPicker.selectedColor}&quot;
                        errorString=&quot;Custom     error   color&quot; /&gt;
        &lt;/mx:FormItem&gt;
        &lt;mx:FormItem&gt;
                &lt;mx:Button /&gt;
        &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;

&lt;/mx:Application&gt;


Author
Sameera Thilakasiri By Sameera Thilakasiri
,is a front-end developer based in Colombo, is a blogger and a lifestyle photographer.
Follow him Twitter and Google+. Check out him.

Comments

Leave a Reply

You must be logged in to post a comment.