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

  • dontRedraw (boolean) - true if the scheduler should not be automatically updated using multiselect.redraw()

Example

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

<script>

// ...

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

</script>

See Also