DayPilot.Calendar.events.remove

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) - event to be removed

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

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

Return Value

DayPilot.Action object that stores the action details.

Example

Remove an event with id of '123':

const e = calendar.events.find('123');
calendar.events.remove(e);