| sidebar_label | addSheet() |
|---|---|
| title | addSheet method |
| description | You can learn about the addSheet 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: Adds a new sheet into the spreadsheet
:::info To apply this method, you need to enable the multisheets configuration option. :::
addSheet(name?: string): string;name- (optional) the name of the new sheet
The method returns an id of the new sheet.
const spreadsheet = new dhx.Spreadsheet("spreadsheet", {});
spreadsheet.parse(data);
// returns "u1614669331209"
spreadsheet.addSheet("New Sheet");Change log: Added in v4.1