AngularJS/AngularUI: Datepicker to only show years?

I am using AngularUI with AngularJS, and I was wondering if there was a way to just see the year calendar with the Datepicker, not giving them the option to choose month and day. I tried looking at the documentation and on the js file itself but it doesn't seem like it's possible. Does anyone have any experience with this?

This is the documentation that I looked at (for the Datepicker): http://angular-ui.github.io/bootstrap/


You can set the min-mode to 'year' and format the date to be yyyy

$scope.dateOptions = {
    formatYear: 'yyyy',
    startingDay: 1,
    minMode: 'year'
};

DEMO: http://plnkr.co/edit/0SPMYQ6ND7AOfZwDAFB8?p=preview

链接地址: http://www.djcxy.com/p/75942.html

上一篇: iOS 7通知中心就像标签一样

下一篇: AngularJS / AngularUI:Datepicker只显示年份?