Skip to main content

set-bound

Description

Fires when making a next/previous step (date) in a calendar

Usage

"set-bound": ({ step: number }) => void;

Parameters

The callback of the set-bound event can take an object with the following parameter:

  • step - (required) a value that allows to switch to the next/previous date in a calendar
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-bound" event
calendar.api.on("set-bound", (obj) => {
console.log(obj);
});