Skip to main content

update-calendar

Description

Fires when updating the calendar data

Usage

"update-calendar": ({
calendar: object,
id: string | number
}) => void;

Parameters

The callback of the update-calendar event can take an object with the following parameters:

  • calendar - (required) an object of the calendar data. The full list of the calendar parameters can be found here
  • id - (required) an ID of the calendar to be updated
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 "update-calendar" event
calendar.api.on("update-calendar", (obj) => {
console.log(obj);
});