You could do a function that we pass an hour and it returns the difference of the hour we passed and the hour of the component.....
I don't think this will become part of this extension. It's a function that will be used but its something you'd have to do in ur script.
But keep the ideas coming! I haven't tested what would happen if this extension was part of a form and you submit it, what value it would pass. It does give a default value of what it displays but it could just break the form. Will test this when I get home.
Very cool component. Interested in merging your Ext.ux.form.TimeField and my Ext.ux.TimePicker?
lol I was just typing the same thing on your update as I got the email saying you posted on mine! haha You provide the clock, I'll provide the time field?
lol I was just typing the same thing on your update as I got the email saying you posted on mine! haha You provide the clock, I'll provide the time field?
Yes, that would be perfect. I'm currently in a hurry, but i'll have a deeper look in your component later on.
It would be great if you could set a default start time, say 8:00 am and then set an increment for the minutes so it would spin for example from 8:00 am, 8:15 am, 8:30 am, etc.
It would be great if you could set a default start time, say 8:00 am and then set an increment for the minutes so it would spin for example from 8:00 am, 8:15 am, 8:30 am, etc.
Thanks again for the great code!
Glad you like this! Will look into adding your suggestions.
Do you have a newer version of this that works with ExtJS 4? I have been trying to hack around with spinnerMod.js and TimeField.js, but I don't seem to be able to get it working!
Apart from the obvious Date().format changes that need to be done, do you have any other pointers?