| sidebar_label | getActiveSheet() |
|---|---|
| title | getactiveSheet method |
| description | You can learn about the getactiveSheet 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: Returns the sheet that is currently active
getActiveSheet(): object;The method returns an object with the name and id attributes of the active sheet
const spreadsheet = new dhx.Spreadsheet("spreadsheet", {});
spreadsheet.parse(data);
// returns {name: "sheet", id: "u1614675531904"}
spreadsheet.getActiveSheet();Change log: Added in v4.1