set-mode
Description
Fires when setting a view mode
Usage
"set-mode": ({ value: string }) => void;
Parameters
The callback of the set-mode event can take an object with the following parameter:
value
- (required) a view mode to be applied
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 "set-mode" event
calendar.api.on("set-mode", (obj) => {
console.log(obj);
});