Skip to main content

delete-calendar

Description

Fires when removing a calendar

Usage

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

Parameters

The callback of the delete-calendar event can take an object with the following parameter:

  • id - (required) an ID of the calendar to be deleted
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 "delete-calendar" event
calendar.api.on("delete-calendar", (obj) => {
console.log(obj);
});