DayPilot.Month.events.update

Declaration

DayPilot.Month.events.update(e, data);

Parameters

  • e (DayPilot.Event or the raw data object) - event to be updated

  • 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

Change the text of an event with id '123' and save the action in the queue.

var e = dpc.events.find('123');
e.text('New Event Name');  // update the event text
dpm.events.update(e).queue();

Change the text of an event with id '123' and send the action to the server immediately.

var e = dpc.events.find('123');
e.text('New Event Name');  // update the event text
dpm.events.update(e).notify();