| sidebar_label | get() |
|---|---|
| title | get method |
| description | You can learn about the get method of the Sheet Manager 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 a single sheet object by its identifier
get: (id: Id) => ISheet;id- (string | number) required, the unique identifier of the sheet to retrieve.
ISheet- (object) the sheet object matching the given id.
const spreadsheet = new dhx.Spreadsheet("spreadsheet_container", {
multiSheets: true
});
spreadsheet.parse(data);
const allSheets = spreadsheet.sheets.getAll();
const sheet = spreadsheet.sheets.get(allSheets[0].id);
console.log(sheet.name); // "sheet1"Change log: Added in v6.0
Related articles: Working with sheets