SpreadJS 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 allowUserZoom method in code.
This example sets the allowUserZoom method.
JavaScript |
Copy Code
|
---|---|
spread.allowUserZoom = false; activeSheet.zoom(3); activeSheet.isPaintSuspended(false); activeSheet.repaint(); |