nathanreyes / v-calendar

An elegant calendar and datepicker plugin for Vue.
https://vcalendar.io
MIT License
4.4k stars 861 forks source link

[Feature Request] Add option to display year/month-picker as simple html list #488

Open vesper8 opened 4 years ago

vesper8 commented 4 years ago

I have a feature request for the @next branch. Currently when clicking the year on the v-date-picker you show a small subset of years. When using v-date-picker as a means to allow users to set their birthday, this results in quite a lot of clicks necessary in order to get to the year they were born.. I'm talking like 5-8 clicks just to pick the year and 10+ clicks to set your birthday (tested and counted 10 clicks to set birthday to june 10th 1979).. this is not optimally friendly even less so on mobile as it overrides the default "list" that is supported on mobile devices

This might be nice for some use-cases but I would like to see an option added where the year and month pickers can be replaced by simple html lists. Similarly to how it is done on https://dbrekalo.github.io/vue-date-pick/

This way both options remain viable and one could choose to enable/disable the fancy popover as they see fit

nathanreyes commented 4 years ago

@vesper8 I think you make a great point and decided create a draft PR for what I'm thinking might help solve this issue. Feel free to comment on that with any thoughts/recommendations you might have.