SpreadJS 13
GC.Spread.Sheets Namespace / Events type / TableColumnsChanged Event
The sheet that triggered the event.
The table which is insert/delete rows.
The operation name which trigger event.
The index of the starting column to insert/delete based on table index.
The number of columns to insert/delete.
Whether insert columns before the specified column index or after. By default is false, insert before.
In This Topic
    TableColumnsChanged Event
    In This Topic
    Occurs when the user insert/delete columns in table.
    Syntax
    var instance; // Type: Events
    instance.TableColumnsChanged = function(sheet, table, propertyName, col, count, isAfter) { };
    TableColumnsChanged = function ( 
       sheet : Worksheet,
       table : table,
       propertyName : string,
       col : number,
       count : number,
       isAfter : boolean
    ) { };

    Parameters

    sheet
    The sheet that triggered the event.
    table
    The table which is insert/delete rows.
    propertyName
    The operation name which trigger event.
    col
    The index of the starting column to insert/delete based on table index.
    count
    The number of columns to insert/delete.
    isAfter
    Whether insert columns before the specified column index or after. By default is false, insert before.
    Example
    //This example uses the TableColumnsChanged event.
    window.onload = function(){
         var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"));
         var activeSheet = spread.getActiveSheet();
         spread.bind(GC.Spread.Sheets.Events.TableColumnsChanged, function (e, data) {});
    }
    See Also

    Reference

    Events type