getAll()
Description
Returns an array of all sheet objects currently present in the spreadsheet
info
Each sheet object contains the sheet's id and name.
Usage
getAll: () => ISheet[];
Returns
ISheet[]- (array) an array of sheet objects.
Example
const spreadsheet = new dhx.Spreadsheet("spreadsheet_container", {
multiSheets: true
});
spreadsheet.parse(data);
const allSheets = spreadsheet.sheets.getAll();
console.log(allSheets);
// [
// { id: "sheet_1", name: "Sheet 1" },
// { id: "sheet_2", name: "Sheet 2" }
// ]
Change log: Added in v6.0
Related articles: Working with sheets