Skip to main content

select-event

Description

Fires when showing an info popup window

Usage

"select-event": ({
id: string | number,
popup?: boolean
}) => void;

Parameters

The callback of the select-event event can take an object with the following parameters:

  • id - (required) an ID of the event to be selected
  • popup - (optional) allows to show an info popup window (if true)
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 "select-event" event
calendar.api.on("select-event", (obj) => {
console.log(obj);
});