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