Skip to main content

addSheet()

Description

Adds a new sheet into the spreadsheet

info

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

Usage

addSheet(name?: string): string;

Parameters

  • name - (optional) the name of the new sheet

Returns

The method returns an id of the new sheet.

Example

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// config parameters
});
// returns "u1614669331209"
spreadsheet.addSheet("New Sheet");

Change log: Added in v4.1