The update() method updates an event in the Month event collection and returns a DayPilot.Action object that can queue the update or send it to the server immediately.
Declaration
DayPilot.Month.events.update(e, data)Parameters
e(DayPilot.Event or the raw data object) - event to be updateddata(object) - custom data to be sent to the server with the Notify event
Return Value
Returns a DayPilot.Action object that stores the action details.
Notes
When passing a DayPilot.Event object, obtain it using DayPilot.Month.events.find().
Example
Change the text of an event with ID "123":
const e = dpm.events.find("123");
e.text("New Event Name");
dpm.events.update(e);See Also
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