Emits an event when a date is selected.
Provides reference the selectedDates property.
Gets the disabled dates descriptors.
Sets the disabled dates' descriptors.
@ViewChild("MyCalendar")
public calendar: IgxCalendarComponent;
ngOnInit(){
this.calendar.disabledDates = [
{type: DateRangeType.Between, dateRange: [new Date("2020-1-1"), new Date("2020-1-15")]},
{type: DateRangeType.Weekends}];
}
Gets the date format options of the days view.
Sets the date format options of the days view. Default is { day: 'numeric', month: 'short', weekday: 'short', year: 'numeric' }
Gets whether the day, month and year should be rendered
according to the locale and formatOptions, if any.
Gets whether the day, month and year should be rendered
according to the locale and formatOptions, if any.
Gets the locale of the calendar.
Default value is "en".
Sets the locale of the calendar.
Expects a valid BCP 47 language tag.
Default value is "en".
Gets the selection type.
Default value is "single".
Changing the type of selection resets the currently
selected values if any.
Sets the selection.
Gets the special dates descriptors.
Sets the special dates' descriptors.
@ViewChild("MyCalendar")
public calendar: IgxCalendarComponent;
ngOnInit(){
this.calendar.specialDates = [
{type: DateRangeType.Between, dateRange: [new Date("2020-1-1"), new Date("2020-1-15")]},
{type: DateRangeType.Weekends}];
}
Gets the selected date(s).
When selection is set to single, it returns
a single Date object.
Otherwise it is an array of Date objects.
Sets the selected date(s).
When selection is set to single, it accepts
a single Date object.
Otherwise it is an array of Date objects.
Gets the date that is presented. By default it is the current date.
Sets the date that will be presented in the default view when the component renders.
Deselects date(s) (based on the selection type).
Selects date(s) (based on the selection type).
Sets/gets whether the outside dates (dates that are out of the current month) will be hidden. Default value is
false.<igx-calendar [hideOutsideDays] = "true"></igx-calendar>let hideOutsideDays = this.calendar.hideOutsideDays;