Skip to main content

getCalendar()

Description

Gets an object of the calendar data by its ID

Usage

getCalendar({ id: string | number }): object;

Returns

info

The getCalendar() method returns an object of the calendar data by the specified ID. For details, see the calendars property!

Parameters

  • id - (required) an ID of the calendar

Example

// create Event Calendar
const calendar = new eventCalendar.EventCalendar("#root", {
// configuration parameters
});
// get a calendar data with the "work" ID
const calendar_data = calendar.getCalendar({ id: "work" });
console.log(calendar_data);