| sidebar_label | setFocusedCell() |
|---|---|
| title | setFocusedCell selection method |
| description | You can learn about the setFocusedCell selection 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 focus on the specified cell
setFocusedCell(cell: string): void;cell- (required) the id of a cell to set focus on
const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// config parameters
});
spreadsheet.parse(data);
spreadsheet.selection.setFocusedCell("D4");Related articles: Work with Spreadsheet