Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 925 Bytes

File metadata and controls

41 lines (27 loc) · 925 Bytes
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.

addSheet()

Description

@short: 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", {});
spreadsheet.parse(data);

// returns "u1614669331209"
spreadsheet.addSheet("New Sheet");

Change log: Added in v4.1