DayPilot.Scheduler.zoom.setActive

The zoom.setActive() method changes the current Scheduler zoom level. The zoom levels need to be defined using zoomLevels property.

This method can be called before init().

Available since 2019.2.3860.

Declaration

DayPilot.Scheduler.zoom.setActive(index[, position]);

Parameters

  • index (number or string)- index of the zoom level to be set (number) or a named zoom level ID (string)
  • position (string) - reference position ("left" | "middle" | "right"); if not specified, the value of zoomPosition will be used

Named zoom levels are supported since version 2020.2.4345.

Example

dp.zoom.setActive(0);

See Also