bevacqua / rome

:calendar: Customizable date (and time) picker. Opt-in UI, no jQuery!
https://bevacqua.github.io/rome
MIT License
2.91k stars 223 forks source link

Cycle through the years, instead of month by month #141

Open tricinel opened 8 years ago

tricinel commented 8 years ago

Hi,

First off, thanks for the great plugin. :+1:

I was wondering if you'd be interested in allowing users to cycle through years, not just month by month. So if I wanted to select a date that's 4 years in the past or two years in the future, I wouldn't have to click 48 times (24 times respectively). I could just go to the year that I want and cycle for the correct month and pick a date from there.

I've forked your project and added this functionality. You can see it in action here: http://quick.as/yb1qfz0bo.

It's backwards compatible, showYears defaults to false, so existing users will see the same thing they are now. If they enable it though, they get to cycle through years and months.

What do you think? I haven't pushed my changes yet.