getCellRect()
returns the parameters of a cell
getCellRect(rowId: string | number, colId: string | number): object;
Parameters:
rowId: string | number
- the id of a rowcolId: string | number
- the id of a column
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 |