Spread.Sheets Documentation
Allowing Zooming
Spread.Sheets Documentation > Developer's Guide > Managing the User Interface > Allowing Zooming

You can zoom in or out of the widget. Use Ctrl + mouse wheel to zoom.

The cell size and contents will change as well as the viewport.

Borders, gridlines, freeze lines, split bars, and the selection indicator are not affected.

You can set a zoom factor to a value between 0.1 and 4.

You can specify whether the user can zoom with the options.allowUserZoom property in code.

Using Code

This example sets the options.allowUserZoom property.

JavaScript
Copy Code
spread.options.allowUserZoom = false;
activeSheet.zoom(3);
See Also