HitTestInfo Class

File
wijmo.grid.js
Module
wijmo.grid

Contains information about the part of a FlexGrid control at a given position on the page.

Constructor

Properties

Methods

Constructor

constructor

constructor(grid: any, pt: any): HitTestInfo

Initializes a new instance of the HitTestInfo class.

Parameters
Returns
HitTestInfo

Properties

cellType

Gets the type of cell found at the specified position.

Type
CellType

col

Gets the index of the column at the specified position.

To get the Column object, use the getColumn method.

Type
number

edgeBottom

Gets a value that indicates whether the mouse is near the bottom edge of the cell.

Type
boolean

edgeFarBottom

Gets a value that indicates whether the mouse is very near the bottom edge of the cell.

Type
boolean

edgeFarRight

Gets a value that indicates whether the mouse is very near the right edge of the cell.

Type
boolean

edgeLeft

Gets a value that indicates whether the mouse is near the left edge of the cell.

Type
boolean

edgeRight

Gets a value that indicates whether the mouse is near the right edge of the cell.

Type
boolean

edgeTop

Gets a value that indicates whether the mouse is near the top edge of the cell.

Type
boolean

grid

Gets the FlexGrid that this HitTestInfo refers to.

Type
FlexGrid

panel

Gets the GridPanel that this HitTestInfo refers to.

Type
GridPanel

point

Gets the point in control coordinates that this HitTestInfo refers to.

Type
Point

range

Gets the cell range at the specified position.

Type
CellRange

row

Gets the index of the row at the specified position.

To get the Row object, use the getRow method.

Type
number

target

Gets the target element used to create this HitTestInfo.

Type
Element

Methods

getColumn

getColumn(binding?: boolean): Column

Gets the Column object at the specified position.

To get the column index, use the col property.

Parameters
Returns
Column

getRow

getRow(): Row

Gets the Row object object at the specified position.

To get the row index, use the row property.

Returns
Row