The multiselect.add() method adds an event to the current multi-selection.
Declaration
DayPilot.Month.multiselect.add(e, dontRedraw)Parameters
e(DayPilot.Event) - item to be added to the list of selected eventsdontRedraw(boolean) - set totrueif the event calendar should not be automatically updated using DayPilot.Month.multiselect.redraw()
Notes
For bulk operations, set dontRedraw to true and call DayPilot.Month.multiselect.redraw() after all changes have been made.
Example
const e = dpm.events.find(123);
dpm.multiselect.add(e);See Also
DayPilot.Month.multiselect.redraw()
Event Selecting [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot