Skip to main content

getFocusedCell()

returns the id of a focused cell

getFocusedCell(): string;

Returns:

The id of a focused cell.

Example

// setting focus on a cell
spreadsheet.selection.setFocusedCell("D4");

// getting the focused cell
var focused = spreadsheet.selection.getFocusedCell(); // ->"D4"

Related articles

Work with Spreadsheet