Results 1 to 4 of 4

Thread: Using ',' instead of '.' in numberfields. Possible?

  1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    74
    Answers
    1
    Vote Rating
    2
      0  

    Default Using ',' instead of '.' in numberfields. Possible?

    Is it possible to change the separator in numberfields so that it accepts commas rather than periods for the decimals?

    So that I can input 110,48 instead of having to type 110.48 for it to register the decimals.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3932
    Vote Rating
    1272
      0  

    Default

    Sencha Touch isn't doing any formatting. This field used the HTML5's number type so the browser is.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    104
    Answers
    4
    Vote Rating
    0
      0  

    Default

    and it is possible show decimals without ',' but still be numberfield, something like textfield.

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    74
    Answers
    1
    Vote Rating
    2
      0  

    Default

    I know that much. Is there any way with Sencha Touch to make a textfield that forces the number keys to open rather than the user having to switch from the letters view to the numbers view?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •