DayPilot.Calendar.multiselect.add

The multiselect.add() method adds an event to the current multi-selection in the Calendar.

Declaration

DayPilot.Calendar.multiselect.add(e, dontRedraw)

Parameters

Notes

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).

Example

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();

See Also

DayPilot.Calendar.multiselect.redraw()

Event Selecting [doc.daypilot.org]

DayPilot.Calendar Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript