update-event
Description
Fires when updating the event data
Usage
"update-event": ({
event: object,
id: string | number,
mode?: "all" | "future"
}) => 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 updatedmode
- (optional) indicates which option the user chose, update "all" or "this and future"
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);
});
Change log: The mode parameter was added in v2.2