Flex的,任何以编程方式突出显示的字段以红色的方式验证呢? [英] Flex, any way to programmatically highlight a field in red the way the validators do?

查看:332
本文介绍了Flex的,任何以编程方式突出显示的字段以红色的方式验证呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一些表单字段值的一些方案的验证,有没有什么办法在ActionScript来突出现场红色的方式验证呢?

I'm doing some programmatic validation of some field values in a form, is there any way in Actionscript to highlight the field in red the way the validators do?

推荐答案

您只需要设置errorString属性的纲领性验证错误

you just need to set errorString property on programmatic validation error

<s:TextInput errorString="error string value" />
<mx:TextInput errorString="error string value" />

这篇关于Flex的,任何以编程方式突出显示的字段以红色的方式验证呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆