The multiselect.add() method adds an event to the current multi-selection in the Calendar.
DayPilot.Calendar.multiselect.add(e, dontRedraw)e (DayPilot.Event) - item to add to the selection
dontRedraw (boolean) - set to true if the calendar should not be updated automatically using DayPilot.Calendar.multiselect.redraw()
For bulk operations, set dontRedraw to true and call DayPilot.Calendar.multiselect.redraw() after all changes have been made.
This method replaced DayPilot.Calendar.eventSelect(e).
Manually select an event in a custom click handler.
const dp = new DayPilot.Calendar("dp", {
onEventClick: (args) => {
dp.multiselect.add(e);
args.preventDefault();
},
// ...
});
dp.init();DayPilot.Calendar.multiselect.redraw()
Event Selecting [doc.daypilot.org]