| sidebar_label | removeSheet() |
|---|---|
| title | removeSheet method |
| description | You can learn about the removeSheet method in the documentation of the DHTMLX JavaScript Spreadsheet library. Browse developer guides and API reference, try out code examples and live demos, and download a free 30-day evaluation version of DHTMLX Spreadsheet. |
@short: 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. :::
removeSheet(id: string): void;id- (required) the id of a sheet
const spreadsheet = new dhx.Spreadsheet("spreadsheet", {});
spreadsheet.parse(data);
// removes a sheet from the spreadsheet by the specified id
spreadsheet.removeSheet("u1614669331209");Change log: Added in v4.1