BeforeColumnAdd

fires before a new column is added

boolean BeforeColumnAdd(string cells){ ... };

Parameters

cellsstringthe id(s) of a cell(s)

Returns

booleantrue to add a column, false to prevent adding of a column

Example

spreadsheet.events.on("BeforeColumnAdd", function(cells){
    console.log("A new column will be added");
    return true;
});

Details

The event is blockable, returning false will prevent adding of a column.

See also
Back to top