SpreadJS 13
GC.Spread.Sheets Namespace / Events type / SheetChanging Event
The sheet's name.
The specific operation name .
Change the sheet position.
: Sheet changes the value of the previous attribute(isVisible, isSelected...).
: Sheet changes the value of the attribute(isVisible, isSelected...).
Cancel the current operation.
In This Topic
    SheetChanging Event
    In This Topic
    Before sheet changed.
    Syntax
    var instance; // Type: Events
    instance.SheetChanging = function(sheetName, propertyName, sheetIndex, oldValue, newValue, cancel) { };
    SheetChanging = function ( 
       sheetName : string,
       propertyName : string,
       sheetIndex : number,
       oldValue : boolean,
       newValue : boolean,
       cancel : boolean
    ) { };

    Parameters

    sheetName
    The sheet's name.
    propertyName
    The specific operation name .
    sheetIndex
    Change the sheet position.
    oldValue
    : Sheet changes the value of the previous attribute(isVisible, isSelected...).
    newValue
    : Sheet changes the value of the attribute(isVisible, isSelected...).
    cancel
    Cancel the current operation.
    Example
    //This example.
    spread.bind(GC.Spread.Sheets.Events.SheetChanging, function (sender, args) {
        var sheetIndex = args.sheetIndex;
        args.cancel = true;
    });
    See Also

    Reference

    Events type