23 May 2012 7:43 AM #1
EXJTS 4 numberfield format
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
25 May 2012 12:44 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
You won't be able to use the number field then. 02 is not a number, you can do it as a string.
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.