update-event
Description
Fires when updating the event data
Usage
"update-event": ({
event: object,
id: string | number
}) => void;
Parameters
The callback of the update-event event can take an object with the following parameters:
event
- (required) an object of the event data. The full list of the event parameters can be found hereid
- (required) an ID of the event 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-event" event
calendar.api.on("update-event", (obj) => {
console.log(obj);
});