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"?>
<mx:Application <a href="http://jtc-enterprises.com/images/">buy cialis tadalafil</a> xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:ApplicationControlBar dock="true">
<mx:Label text="errorColor:" />
<mx:ColorPicker id="colorPicker" />
</mx:ApplicationControlBar>
<mx:Form>
<mx:FormItem label="text:" required="true">
<mx:TextInput id="textInput"
errorColor="{colorPicker.selectedColor}"
errorString="Custom error color" />
</mx:FormItem>
<mx:FormItem>
<mx:Button />
</mx:FormItem>
</mx:Form>
</mx:Application>
Category: Action Script 3.0, Flex 3
Tags: ActionScript | errorColor | errorString | Flex 3 | TextInput
Tags: ActionScript | errorColor | errorString | Flex 3 | TextInput
Comments
Leave a Reply
You must be logged in to post a comment.
Sameera at LinkedIn
