The zoom.setActive() method changes the current zoom level of the JavaScript Calendar component. The zoom levels need to be defined using zoomLevels property.
This method can be called before init().
Available since 2023.1.5540.
DayPilot.Calendar.zoom.setActive(index);
dp.zoom.setActive(0);