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 ID

  • position (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.zoomLevels

DayPilot.Scheduler.zoomPosition

Scheduler Zoom [doc.daypilot.org]

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

ProductLitePro
DayPilot for JavaScript