elm-datepicker icon indicating copy to clipboard operation
elm-datepicker copied to clipboard

Add option to have a dropdown open when clicking on the year

Open SylvieC opened this issue 7 years ago • 5 comments

Thanks for the datepicker, it is great! Could we add the option to change the year via a dropdown? Somewhat like js_datepicker

When input dates are way in the past, like birthdates, it is a very useful tool to get to the year you want fast. For the month, it is not as necessary as we can access them by a few clicks

SylvieC avatar Jan 19 '18 22:01 SylvieC

That does seem like it would save time, and if optional seems like a fairly easy inclusion. A PR would be welcome.

bbqbaron avatar Jan 20 '18 17:01 bbqbaron

I may be confused about what the suggested change here is, and if so sorry about that. However as far as I can tell, what I think you're asking for is already possible using the changeYear option - see here for an example:

screenshot - 200118 - 19 27 44

bobwhitelock avatar Jan 20 '18 19:01 bobwhitelock

@bobwhitelock This is exactly what I am looking for. Thanks!

SylvieC avatar Jan 21 '18 21:01 SylvieC

@SylvieC no problem! :slightly_smiling_face:

bobwhitelock avatar Jan 22 '18 18:01 bobwhitelock

Warms my icy maintainer heart to see people collaborating!

bbqbaron avatar Jan 22 '18 19:01 bbqbaron