开发者

Flex: Restrict data input

I have a TextField as:

 <s:TextInput restrict="A-Z0-9_" maxChars="30"/>

And I am restricting the input to:

How can I restrict the input more to allow only letters at the begging and end?


The restrict-field validates immediately when the user types in something.
You need an RegExp-Validator to validate after the user wants to submit the data, so you can't use the restrict-field.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜