The update() method updates and redraws the Queue component. You can either change the properties directly and call update(), or pass the changes using the optional options argument.
Declaration
DayPilot.Queue.update([options])Parameters
options(object) - optional object with properties and event handlers to update
The options object can specify any of the standard DayPilot.Queue Properties and DayPilot.Queue Events.
Notes
This method cannot be called after the component has been disposed using DayPilot.Queue.dispose(). In that case, an exception will be thrown.
Within the options object, the special events property updates the event array and is translated to DayPilot.Queue.events.list.
Example
Update the component after changing a property directly:
dp.lineSpace = 5;
dp.update();Or pass the changes using the optional options argument:
dp.update({
lineSpace: 5
});See Also
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot