The multiselect.remove() method removes an event from the current Scheduler multi-selection.
Declaration
DayPilot.Scheduler.multiselect.remove(e, dontRedraw)Parameters
e(DayPilot.Event) - selected item to remove from the listdontRedraw(boolean) - set totrueif the scheduler should not be automatically updated using DayPilot.Scheduler.multiselect.redraw()
Notes
For bulk operations, set dontRedraw to true and call DayPilot.Scheduler.multiselect.redraw() after all changes have been made.
Example
Unselect an event manually in a custom click handler.
const dp = new DayPilot.Scheduler("dp", {
onEventClick: (args) => {
eventClick(args.e, dp);
args.preventDefault();
},
// ...
});
dp.init();function eventClick(e, dp) {
dp.multiselect.remove(e);
}See Also
DayPilot.Scheduler.multiselect.redraw()
Event Selecting [doc.daypilot.org]
DayPilot Scheduler Event Selecting
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot