Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151006 | Jan 28,2020 05:17 AM UTC | Jan 30,2020 07:26 AM UTC | Angular - EJ 2 | 3 |
![]() |
Tags: Calendar |
[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)
];
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.