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