cellBounds(row, column, [new_order])

Class: Table.

Description:

Returns the bounds of a table cell, position relative to the Table, position relative to screen, and the size.

Parameters:

Name Type Default Description

row

number

Zero-based row index.

column

number

Zero-based column index.

[new_order]

boolean

false

If true, the row and column indexes are interpreted using the current display order after sorting or column reordering. If false, the original model indexes are used.

Returns:

An object containing the cell's size in pixels, position relative to the table's client area, and position relative to screen.

Type: Object

Examples:

Getting cell bounds

const bound = myTable.cellBounds(0, 0);
console.log(bounds);

// result is something like this
{
	width: 20,
	height: 20,
	x: 1,
	y: 28,
	screenX: 437,
	screenY: 334
}