DayPilot.Month.events.remove

The events.remove() method deletes the specified event from the monthly calendar component and updates the view.

Declaration

DayPilot.Month.events.remove(e[, data]);

Parameters

  • e (DayPilot.Event) - instance to be removed

  • data (object) - custom data to be sent to the server with the Notify event (ASP.NET WebForms, ASP.NET MVC, and Java versions only)

Return Value

Returns a DayPilot.Action object that stores the action details.

Notes

The e object has to be acquired using find() or findRecurrent().

On ASP.NET WebForms, ASP.NET MVC, and Java versions, the returned action can be queued or sent to the server immediately, and the optional data object is included with the Notify request.

Example

Remove an event with ID "123":

const e = dp.events.find("123");
dp.events.remove(e);

See Also

DayPilot.Month.events.find()

DayPilot.Month.events.findRecurrent()

Client-Side Event API [doc.daypilot.org]

Notify Queue [doc.daypilot.org]

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript