onBeforeZoom

fires before zoom level of the calendar is changed

void onBeforeZoom(number level,number prev_level);
levelnumbernew zoom level
prev_levelnumberold zoom level

Example

$$("calendar1").atachEvent("onBeforeZoom", function(level, prev_level){
    //code
});

Details

Webix calendar features 3 zoom levels:

  • 0 - the initial zoom level, month view is displayed;
  • 1 - year view with month names is displayed;
  • 2 - ten-year period with year numbers is displayed
See also
  • Articles
  • Back to top