getActive()
Description
Returns the sheet object that is currently active (visible) in the spreadsheet
Usage
getActive: () => ISheet;
Returns
ISheet- (object) the currently active sheet object with theidandnameproperties.
Example
const spreadsheet = new dhx.Spreadsheet("spreadsheet_container", {
multiSheets: true
});
spreadsheet.parse(data);
const active = spreadsheet.sheets.getActive();
console.log(active.name); // "Sheet 1"
console.log(active.id); // "sheet_1"
Change log: Added in v6.0
Related articles: Working with sheets