Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 932 Bytes

File metadata and controls

38 lines (26 loc) · 932 Bytes
sidebar_label getFocusedCell()
title getFocusedCell selection method
description You can learn about the getFocusedCell 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.

getFocusedCell()

Description

@short: Returns the id of a focused cell

Usage

getFocusedCell(): string;

Returns

The method returns an id of a focused cell

Example

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
    // config parameters
});
spreadsheet.parse(data);

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

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

Related articles: Work with Spreadsheet