The zoom.setActive() method changes the current Scheduler zoom level. Zoom levels must be defined using the zoomLevels property.
This method can be called before init(). Available since 2019.2.3860.
Declaration
DayPilot.Scheduler.zoom.setActive(index[, position])Parameters
index(number|string) - zoom level index or named zoom level IDposition(string, optional) - reference position:"left","middle", or"right"; if not specified, zoomPosition is used
Notes
Named zoom levels are supported since version 2020.2.4345.
Example
dp.zoom.setActive(0);See Also
DayPilot.Scheduler.zoomPosition
Scheduler Zoom [doc.daypilot.org]
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot