DayPilot.Scheduler.events.remove

Declaration

DayPilot.Scheduler.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

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 '123' and save the action in the queue.

var e = dps.events.find('123');
dps.events.remove(e).queue();

Remove an event with id '123' and send the action to the server immediately.

var e = dps.events.find('123');
dps.events.remove(e).notify();

See Also