The multiselect.add() method adds an event to the list of selected events.
Declaration
DayPilot.Scheduler.multiselect.add(e, dontRedraw)Parameters
e(DayPilot.Event) - item to be added to the list of selected eventsdontRedraw(boolean) - set totrueto skip the automatic update and refresh the selection later using multiselect.redraw()
Notes
For bulk operations, use dontRedraw = true and call multiselect.redraw() after all changes have been made.
Example
Add the clicked event to the multiselection in the onEventClicked handler.
const dp = new DayPilot.Scheduler("dp", {
onEventClicked: (args) => {
dp.multiselect.add(args.e);
},
// ...
});
dp.init();See Also
DayPilot.Scheduler.multiselect.redraw()
Event Selecting [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot