sidebar_label | title | description |
---|---|---|
getEvent() |
getEvent Method |
You can learn about the getEvent method in the documentation of the DHTMLX JavaScript Event Calendar library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Event Calendar. |
@short: Gets an object of the event data by its ID
getEvent({ id: string | number }): object;
:::info
The getEvent()
method returns an object of the event data by the specified ID. For details, see the events
property!
:::
id
- (required) an ID of the event
// 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);