delete-event
Description
Fires when removing an event
Usage
"delete-event": ({ id: string | number }) => void;
Parameters
The callback of the delete-event event can take an object with the following parameter:
id
- (required) an ID of the event 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-event" event
calendar.api.on("delete-event", (obj) => {
console.log(obj);
});