开发者

phone number formatting in client side while entering number in flex

开发者 https://www.devze.com 2023-03-01 17:43 出处:网络
in my flex application i want to ke开发者_JAVA百科ep a format like... i want to show space in client side while entering phone numbers..

in my flex application i want to ke开发者_JAVA百科ep a format like... i want to show space in client side while entering phone numbers.. After entering three numbers cursor should leave a space...

for eg:- 111 111111

is there any idea to work this in CLIENT SIDE itself


You can use Masked TextInput component. More info is here.


You should be able to work something out using the mx:PhoneFormatter (which can be customized to match whatever pattern you'd like): http://livedocs.adobe.com/flex/3/html/help.html?content=formatters_2.html

<mx:PhoneFormatter formatString="### ######" />


Perhaps replace the contents of the input field with the PhoneFormatted version onKeyUp.

0

精彩评论

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