setDate()
Description
Sets a current date of Event Calendar
Usage
setDate({ value: Date }): void;
Parameters
value
- (required) the current date of Event Calendar
Example
// create Event Calendar
const calendar = new eventCalendar.EventCalendar("#root", {
// configuration parameters
});
//set current date
const date = new Date("2021-05-24 00:00:00");
calendar.setDate({ value: date });