SpreadJS Documentation
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 allowUserZoom method in code.

Using Code

This example sets the allowUserZoom method.

JavaScript
Copy Code
spread.allowUserZoom = false;
activeSheet.zoom(3);
activeSheet.isPaintSuspended(false);
activeSheet.repaint();

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.