SpreadJS Documentation
UserZooming Event
The sheet that triggered the event.
The sheet's name.
The new zoom factor.
The old zoom factor.
Occurs when the user zooms.
Syntax
var instance; // Type: Events
instance.UserZooming = function(sheet, sheetName, oldZoomFactor, newZoomFactor) { };
UserZooming = function ( 
   sheet : Sheet,
   sheetName : string,
   oldZoomFactor : number,
   newZoomFactor : number
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
oldZoomFactor
The new zoom factor.
newZoomFactor
The old zoom factor.
Example
This example uses the UserZooming event.
spread.allowUserZoom = true;

$("#spreadContainer").data("spread").getActiveSheet().bind(GcSpread.Sheets.Events.UserZooming, function (e, info) {    
        alert("Zoom (" + info.newZoomFactor + ")");
});
See Also

Reference

Events type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.