Skip to main content

api.exec()

Description

Allows triggering the inner events

Usage

api.exec(
event: string,
config: object
): void;

Parameters

  • event - (required) an event to be fired
  • config - (required) the config object with parameters (see the event to be fired)

Events

info

The full list of the Event Calendar internal events can be found here

Example

// create Event Calendar
const calendar = new eventCalendar.EventCalendar("#root", {
// configuration properties
});
// set "day" mode
calendar.api.exec("set-mode", { mode: "day" });