Skip to content

TableEditor.getClosestCell method

TableEditor › getClosestCell

Unofficial

Get the cell closest to the given viewport coordinates.

Signature:

getClosestCell(x: number, y: number): TableCell

Parameters:

ParameterTypeDescription
xnumberHorizontal coordinate.
ynumberVertical coordinate.

Returns: TableCellThe closest cell.