| 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. |
@short: Sets the active sheet by its id
setActiveSheet(id: string): void;id- (required) the id of a sheet
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