getEvent()
Description
Gets an object of the event data by its ID
Usage
getEvent({ id: string | number }): object;
Returns
info
The getEvent()
method returns an object of the event data by the specified ID. For details, see the events
property!
Parameters
id
- (required) an ID of the event
Example
// create Event Calendar
const calendar = new eventCalendar.EventCalendar("#root", {
// configuration parameters
});
// get an event data with the "1" ID
const event_data = calendar.getEvent({ id: "1" });
console.log(event_data);