Skip to main content

removeSheet()

Description

Removes a sheet from the spreadsheet by its id

info

To apply this method, you need to enable the multiSheets configuration option.

Also note, that a sheet won't be deleted if the number of sheets in the spreadsheet is less than 2.

Usage

removeSheet(id: string): void;

Parameters

  • id - (required) the id of a sheet

Example

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// config parameters
});
// removes a sheet from the spreadsheet by the specified id
spreadsheet.removeSheet("u1614669331209");

Change log: Added in v4.1