The events.update() method replaces the event with the specified ID with the supplied object and updates the Queue component.
Declaration
DayPilot.Queue.events.update(e)Parameters
e(DayPilot.Event or raw object) - event to update
Notes
The supplied object replaces the current Queue item with the same ID, letting you refresh the rendered event using new data.
Example
dp.events.update({
id: 3,
text: "Task 3",
duration: DayPilot.Duration.ofDays(5)
});See Also
DayPilot.Queue.events.remove()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot