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
dontRedraw(boolean) - set totrueif the scheduler should not be updated automatically using DayPilot.Scheduler.multiselect.redraw()
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]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot