how to apply custom style on StringValidator toolTip
I am using stringValidator component in flex.
<mx:StringValidator id="toValidator" source="{To}" property="text" triggerEvent="click" >
</mx:StringValidator>
It is working properly but problem is that I have applied borderSkin on ToolTip in my default styleSheet which change the appearance of the message by the validator.
mx|ToolTip
{
borderSkin: Embed(source="assets/componentImages/TabBar-tab_开发者_JAVA技巧selectedUpSkin.png");
}
Now I want that this borderSkin should not be applied on my stringValidator. How can I do this?
The error tooltip has it's own stylename, errorTip. You just need to specify it to now include the borderSkin.
.errorTip { borderSkin: none}
Should do it.
take a look to Flex Style Explorer you can build your own css file which can manage all of your components easy way
精彩评论