getCellRect

returns the parameters of a cell

object getCellRect(string|number row,string|number col);

Parameters

rowstring|numberthe id of a row
colstring|numberthe id of a column

Returns

objectan object with parameters of a cell

Example

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

Details

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
See also
Back to top