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 |
|---|---|---|---|
|
|
number |
Zero-based row index. |
|
|
|
number |
Zero-based column index. |
|
|
|
boolean |
false |
If |
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
}
