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