DayPilot.Scheduler.multiselect.clear

The multiselect.clear() method clears the list of selected events in the JavaScript Scheduler and updates the view.

Declaration

DayPilot.Scheduler.multiselect.clear(dontRedraw)

Parameters

Notes

Use dontRedraw when you are performing multiple selection changes and want to refresh the Scheduler manually after the last change.

Example

<button id="clear">Clear selection</button>

const dp = new DayPilot.Scheduler("dp", {
  // ...
});
dp.init();

document.querySelector("#clear").addEventListener("click", () => {
  dp.multiselect.clear();
});

See Also

DayPilot.Scheduler.multiselect.get()

DayPilot.Scheduler.multiselect.redraw()

DayPilot Scheduler Event Selecting [doc.daypilot.org]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript