badrinarayanan / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

TimePicker #238

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice if Closure Library would include a TimePicker component to 
accompany the DatePicker widget.

E.g. when entering the date and time of a meeting, only part is offered by 
closure library so far. I like the way Google Calendar does solve this, with 
offering 30 minute intervals in the dropdown.

Original issue reported on code.google.com by erich.sc...@gmail.com on 26 Nov 2010 at 3:32

GoogleCodeExporter commented 8 years ago

Original comment by pall...@google.com on 26 Nov 2010 at 4:31

GoogleCodeExporter commented 8 years ago
P.S. I'm currently using a "PopupMenu" for this. This works okayish, but I had 
to tweak it a little. In particular, 48 entrys (for 30 minute steps) is too 
much for almost any screen. I therefore set max-height and overflow: auto.

The only thing not done yet is to pre-select the current value or scroll to the 
nearest value.

Maybe I should have started with a combobox instead.

It would obviously be nice to have two dropdowns, one for the hours and one for 
the minutes, while retaining a regular input for copy&paste of times.

Original comment by erich.sc...@gmail.com on 26 Nov 2010 at 5:58