A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/grid/api/grid_getcellrect_method/ below:

Website Navigation


JavaScript Grid - getCellRect Method

getCellRect()

returns the parameters of a cell

getCellRect(rowId: string | number, colId: string | number): object;

Parameters: Returns:

An object with parameters of a cell.

Example

const rect = grid.getCellRect("1", "c");
// -> {x: 200, y: -40, height: 40, width: 200}

The return object includes the following attributes:

x (number) the X coordinate of a cell y (number) the Y coordinate of a cell height (number) the height of a cell width (number) the width of a cell

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4