Results 1 to 2 of 2

Thread: EXJTS 4 numberfield format

  1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Posts
    111
    Vote Rating
    -1
      0  

    Default EXJTS 4 numberfield format

    Hey guys,

    Just a quick question. I have 2 numberfields resembling a click. So there's hours : minutes.
    The hours numberfield goes up to 23, and minutes goes up to 59. What I want to do is be able to display the minutes/hours as 01,02,03 and not 1,2,3. So the numberfields will show 04 : 09 instead of 4 : 9.

    How is this possible?

    Thanks in advance

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Vote Rating
    1367
      0  

    Default

    You won't be able to use the number field then. 02 is not a number, you can do it as a string.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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