Gets/sets whether the view should be rendered according to the locale and yearFormat, if any.
Sets/gets the id of the years view.
If not set, the id will have value "igx-years-view-0".
<igx-years-view id = "my-years-view"></igx-years-view>
let yearsViewId = this.yearsView.id;
Emits an event when a selection is made in the years view.
Provides reference the date property in the IgxYearsViewComponent.
<igx-years-view (onSelection)="onSelection($event)"></igx-years-view>
Gets the locale of the years view.
Default value is "en".
let locale = this.yearsView.locale;
Sets the locale of the years view.
Expects a valid BCP 47 language tag.
Default value is "en".
<igx-years-view [locale]="de"></igx-years-view>
Gets the year format option of the years view.
let yearFormat = this.yearsView.yearFormat.
Sets the year format option of the years view.
<igx-years-view [yearFormat]="numeric"></igx-years-view>
Gets/sets the selected date of the years view. By default it is the current date.
<igx-years-view [date]="myDate"></igx-years-view>let date = this.yearsView.date;IgxYearsViewComponent