The events.add() method adds a new event to the monthly calendar component.
DayPilot.Month.events.add(e[, data]);
DayPilot.Action object that stores the action details.
Create a new event:
const event = { start: DayPilot.Date.today(), end: DayPilot.Date.today().addDays(1), text: "New calendar event", id: 1 }; dp.events.add(event);