openEditor()
Description
Opens an editor for an event by its ID
Usage
openEditor({ id: string | number }): void;
Parameters
id
- (required) an ID of the event, the editor will be opened for
Example
// create Event Calendar
const calendar = new eventCalendar.EventCalendar("#root", {
// configuration parameters
});
// open editor for the event with the "1" ID
calendar.openEditor({ id: 1 });