toggle-sidebar
Description
Fires when showing/hiding a sidebar
Usage
"toggle-sidebar": ({ show?: boolean }) => void;
Parameters
The callback of the toggle-sidebar event can take an object with the following parameter:
show
- (optional) allows to show/hide a sidebar
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 "toggle-sidebar" event
calendar.api.on("toggle-sidebar", (obj) => {
console.log(obj);
});