The events.remove() method removes the specified event from the JavaScript Calendar UI and from the data source (events.list).
Declaration
DayPilot.Calendar.events.remove(e[, data])Parameters
e(DayPilot.Event) - DayPilot.Event object to be removeddata(object) - custom data to be sent to the server with the Notify event (ASP.NET WebForms, ASP.NET MVC, Java)
Return Value
Returns a DayPilot.Action object that stores the action details.
Notes
The e object has to be acquired using find() or findRecurrent().
When you specify data, it is sent to the server with the Notify event in ASP.NET WebForms, ASP.NET MVC, and Java editions.
Example
Remove an event with an id of "123":
const e = calendar.events.find("123");
calendar.events.remove(e);See Also
Event Deleting [doc.daypilot.org]
Client-Side Event API [doc.daypilot.org]
Notify Queue [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot