'How to make a kendo-angular-datepicker to show year only

How to configure the kendo-angular date picker to show year only on selecting.



Solution 1:[1]

To show year only and be able to select year only, this is what I use

<kendo-datepicker
    format="yyyy" <!-- Shows year only inside the textbox -->
    activeView="decade" <!-- Starting point inside the popup -->
    bottomView="decade" <!-- Can't navigate down in the popup -->
    topView="decade" <!-- Can't navigate up in the popup -->
    <!-- Add more option below as needed -->
></kendo-datepicker>

More info here : Kendo DatePickerComponent API doc

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1