This support forum belongs to the Timepicker Gallery Module.
Timepicker has a bug tracker here: http://github.com/saw/yui3-gallery/issues
| Page 1 of 2 | [ 11 posts ] | Go to page 1, 2 Next |
|
Add your feature requests here please.
|
|
What i had in my YUI 2 implementation is.
-24 and 12 hour mode -same flexible internalization as in calendar -selection of time periods -bi-directional update (choose time from gui and update input OR type time and update gui) -convert timestamp to YUI time. that's it so far. |
|
Coolness. I'll put that on the list. Or if you feel up to it feel free to fork the code in github and make the changes, I will merge them in.
|
|
I really like this widget, would it be possible to get an example with two inputs on the same form?
- 2nd the request for being able to configure the time periods; instead of 15 minute increments, maybe 10, 5 or 1. |
|
JohnG wrote: I really like this widget, would it be possible to get an example with two inputs on the same form? - 2nd the request for being able to configure the time periods; instead of 15 minute increments, maybe 10, 5 or 1. I would like to second the request for an example where one had multiple inputs of this type in the same form, but I am more interested in the situation where one has a table contain 100's of times and one wanted to bring up the widget adjacent to the chosen cell when one clicked on it. I tried with a set of inputs and the sticking point I ran into was the placement of the container. It worked fine if we left the widget where it was but I wanted the widget next to the chosen input. I suppose I could create the widget on demand for each cell but that seems wasteful. What I was thinking was maybe one could detatch the widget from wherever it was and place it into the parent of the selected widget.. my solution almost worked too, but it loses the css .. this is what I tried... <form> <div>Label: <input type="text" name="time1" value="2:45AM" class="time"></div> <div>Label: <input type="text" name="time2" value="2:45AM" class="time"></div> <div>Label: <input type="text" name="time3" value="2:45AM" class="time"></div> <div id='cb'> </div> </form> then... something like: Yui().Use('gallery-timepicker', function(Y) { var pContainer = Y.get('#cb'); var dbg = Y.get('#dbg'); var theTarget; var picker = new Y.Saw.Timepicker({contentBox: '#cb'}); picker.render(); picker.hide(); picker.set('time.ampm', picker.AM); picker.subscribe('timeset', function(data){ if (theTarget) theTarget.set('value' ,data.s12hour); //#time should be a text input }); picker.subscribe('cellclick', function(e){ this.hide(); },picker); function handleClick(e){ theTarget = e.target; picker.hide(); var parent = theTarget.get('parentNode'); dbg.setContent(theTarget.get('id')); pContainer.remove(); parent.appendChild(pContainer); picker.toggle(); } Y.all('.time').on('click', handleClick); }); and it almost worked.. except the displayed widget does not have appropriate css settings. This might be completely the wrong way of going about it anyway, so I want to know the correct way. |
|
Hi, it looks like this might be a bug, I'm working on it right now.
|
|
Yeah, there is a bug, there was a static var being treated as if it wasn't. I have a patch I'm testing now, I'll request a push.
When the change is out using another one will be just like using the first, just call new Y.Saw.Timepicker and do whatever you like. |
|
CDN push requested, I'll let you know what its updated. If you are interested, here is the patch:
http://github.com/saw/yui3-gallery/comm ... 5e04b6717d A little hard to read because I cleaned up some formatting. |
|
Ok fix is pushed, now two pickers will co-exist on the same page happily.
|
|
Hi,
I am new to YUI and I have tried your Timepicker and it has been very useful tool for my design. I have tried to customerize the minutes values but failed to do so. I have check your source JS and found that you have fixed the values between 15 - 45 with step size 15. Is it possible to add "Customizable Minutes" feature to the widget. 2. Can I possibly download the JS, include it in my web pages and use it. If yes ? Can you please show me the changes i need to make to the function call. Thanks, |
| Page 1 of 2 | [ 11 posts ] | Go to page 1, 2 Next |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group