Pikaday / Pikaday

A refreshing JavaScript Datepicker — lightweight, no dependencies, modular CSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plans to include a time selector?

mgibbs189 opened this issue · comments

I know it's early in the game, but are you considering adding time selection as well?

Yes definitely! It will be on a forked version to avoid code bloat here and probably dependant on Moment.js

Cool! Any initial ideas on the time selection UI?

jQuery UI Timepicker uses 2 sliders, which works well, but has a pretty heavy dependency footprint.

I'm tentatively going to say within the next month! I made this to ultimately replace my use of jQuery UI date/time pickers.

@dbushell - I was asking about the User Interface, not the ETA :)

I've seen everything from dropdowns to flyout menus to sliders, and I was just curious as to which direction you were going to take.

@logikal16 ha oh right, must have assumed before reading!

Not thought about it yet, the sliders are nice but a bit fiddly to adjust. When I do some research I'll publish options in this thread. What's your preference?

Sliders work best of all the options I've tried. There's definitely still room for improvement though.

I've been tossing around the idea of a joystick button. Dragging up/down to adjust hours, and left/right to adjust minutes.

joystick button

+1 for time support.

commented

I'm willing to buy a beer/coffee for the first one who requests a pull on this.

Regarding sliders vs select fields: +1 for selects, sliders suck at precision. Having a field where developers can adjust the available time-frame is more than enough (say every hour, every 5 minute to be available as an option).

@dbushell thanks a lot for the work so far!

+1 for selects, I've stopped using sliders for time input because people complained about them. Selects seem to be a much better way to go.

Any updates? Is the verdict to use time selection dropdowns?

This is the last issue preventing me from making a clean break from UI Datepicker / Timepicker.

+1 for time selectors

commented

Btw.
Current implementation of <input type="datetime"> in Opera

Time support will live in a fork.

Which fork contains the time support?