SpreadJS 13
GC.Spread.Sheets Namespace / Events type / ViewZoomed Event
The sheet that triggered the event.
The sheet's name.
The new zoom factor.
The old zoom factor.
In This Topic
    ViewZoomed Event
    In This Topic
    Occurs after the user zooms.
    Syntax
    var instance; // Type: Events
    instance.ViewZoomed = function(sheet, sheetName, newZoomFactor, oldZoomFactor) { };
    ViewZoomed = function ( 
       sheet : Worksheet,
       sheetName : string,
       newZoomFactor : number,
       oldZoomFactor : number
    ) { };

    Parameters

    sheet
    The sheet that triggered the event.
    sheetName
    The sheet's name.
    newZoomFactor
    The new zoom factor.
    oldZoomFactor
    The old zoom factor.
    Example
    //This example uses the ViewZoomed event.
    spread.options.allowUserZoom = true;
    activeSheet.bind(GC.Spread.Sheets.Events.ViewZoomed, function (e, info) {
         alert("Zoom (" + info.newZoomFactor + ")");
    });
    See Also

    Reference

    Events type