Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 955 Bytes

File metadata and controls

37 lines (24 loc) · 955 Bytes
sidebar_label setActiveSheet()
title setActiveSheet method
description You can learn about the setActiveSheet 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.

setActiveSheet()

Description

@short: Sets the active sheet by its id

Usage

setActiveSheet(id: string): void;

Parameters

  • id - (required) the id of a sheet

Example

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {});
spreadsheet.parse(data);

// sets the active sheet by the specified id
spreadsheet.setActiveSheet("u1636003130922");

Change log: Added in v4.2

Related articles: Setting active sheet

Related sample: Spreadsheet. Set active sheet