sencha touch 2 numberfield separator -


i have st2 app has numberfield phone number:

            {                     xtype: 'numberfield',                     id: 'phone',                     name: 'phone',                     cls: "detailtext",                     label: 'phone:'             } 

i have running on both android , iphone. if enter phone number of "555123987", android display "555123987" while iphone display "555,123,987".

how remove commas?

i'm using numberfield because elsewhere in app user uses contents of field make call. there way stop junk characters getting in there without watching keydown or something? maybe using textfield regex somehow?

you can set ui config text (ui: 'text'). so:

xtype: 'numberfield', ui: 'text', label: 'phone', name: 'phone' 

that's quick way prevent commas automatically getting in there on iphone. doesn't prevent user typing in own "junk" characters.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -