AfterSheetAdd

fires after a new sheet is added

void AfterSheetAdd(object sheet){ ... };

Parameters

sheetobjectthe object of a new sheet

Example

spreadsheet.events.on("afterSheetAdd", function(sheet) {
    console.log("A new sheet is added:", sheet.name);
});

Details

The sheet object contains the following parameters:

  • name - (string) the name of the new sheet
  • id - (string) the id of the new sheet
Change log

added in v4.1

Back to top