Skip to main content

set-date

Description

Fires when setting a new date

Usage

"set-date": ({ value: Date }) => void;

Parameters

The callback of the set-date event can take an object with the following parameters:

  • value - (required) a current date to be set
info

For handling the inner events of Event Calendar you can use the Event Bus methods

Example

// create Event Calendar
const calendar = new eventCalendar.EventCalendar("#root", {
// configuration parameters
});
// subscribe on the "set-date" event
calendar.api.on("set-date", (obj) => {
console.log(obj);
});