BeforeRowAdd

fires before a new row is added

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

Parameters

cellsstringthe id(s) of a cell(s)

Returns

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

Example

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

Details

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

See also
Back to top