Emits an event when a selection is made in the years view.
Provides reference the date
property in the IgxYearsViewComponent
.
<igx-years-view (selected)="onSelection($event)"></igx-years-view>
IgxYearsViewComponent
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
Gets the locale
of the years view.
Default value is "en"
.
let locale = this.yearsView.locale;
IgxYearsViewComponent
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>
IgxYearsViewComponent
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>
IgxYearsViewComponent
Gets/sets whether the view should be rendered according to the locale and yearFormat, if any.