DayPilot.Scheduler.multiselect.add

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 events

  • dontRedraw (boolean) - set to true to 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]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript