[component.html]
<ejs-calendar #calendar [isMultiSelection]="multiSelection" [values]="dates" ></ejs-calendar>
[component.ts]
public year: number = new Date().getFullYear();
public month: number = new Date().getMonth();
// enable the multiselection feature
public multiSelection: boolean = true;
@ViewChild("calendar")
public calendarObj: CalendarComponent;
// given the selectable dates
public dates: Date[] = [
new Date(this.year, this.month, 26),
new Date(this.year, this.month, 27),
new Date(this.year, this.month, 28),
new Date(this.year, this.month, 29),
new Date(this.year, this.month, 30),
new Date(this.year, this.month, 31)
];
|