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

How to quickly select a year? #82

Closed xiaoshuimao closed 9 years ago

xiaoshuimao commented 9 years ago

How to quickly select a year? For example, I want to choose the 1970.

bevacqua commented 9 years ago
var i = rome(el);
i.setValue(i.getMoment().year(1970));