Class: RowResizing

RowResizing

new RowResizing()

Extends

Members

currentHoverCell :Point

the cell location where the cursor is currently

Type:
Inherited From:
Default Value:
  • null

cursor :string

the cursor I want to be displayed

Type:
  • string
Inherited From:
Default Value:
  • null

detached :Feature

a temporary holding field for my next feature when I'm in a disconnected state

Type:
Inherited From:
Default Value:
  • null

dragArea :number

the index of the row/column we are dragging

Type:
  • number
Default Value:
  • -1

dragAreaStartingSize :number

the starting width/height of the row/column we are dragging

Type:
  • number
Default Value:
  • -1

dragStart :number

the pixel location of the where the drag was initiated

Type:
  • number
Overrides:
Default Value:
  • -1

dragStartWidth :number

the starting width/height of the row/column we are dragging

Type:
  • number
Inherited From:
Default Value:
  • -1

next :Feature

the next feature to be given a chance to handle incoming events

Type:
Inherited From:
Default Value:
  • null

Methods

attachChain()

reattach my child from the detached reference

Inherited From:

detachChain()

disconnect my child

Inherited From:

getAreaSize(grid, index) → {number}

return the width/height of the row/column of interest

Parameters:
Name Type Description
grid Hypergrid
index number

the row/column index of interest

Returns:
Type
number

getCursorName() → {string}

return the cursor name

Overrides:
Returns:
Type
string

getFixedAreaCount(grid) → {number}

Parameters:
Name Type Description
grid Hypergrid
Inherited From:
Default Value:
  • -2
Returns:
Type
number

getGridCellValue(gridCell) → {number}

get the grid cell x,y coordinate

Parameters:
Name Type Description
gridCell Point
Returns:
Type
number

getMouseValue(event) → {number}

get the mouse x,y coordinate

Parameters:
Name Type Description
event MouseEvent

the mouse event to query

Overrides:
Returns:
Type
number

getScrollValue(grid) → {number}

return the grids x,y scroll value

Parameters:
Name Type Description
grid Hypergrid
Returns:
Type
number

handleDoubleClick(grid, cellEvent)

Parameters:
Name Type Description
grid Hypergrid
cellEvent CellEvent
Inherited From:

handleMouseDown(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Inherited From:

handleMouseDrag(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Inherited From:

handleMouseMove(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Inherited From:

handleMouseUp(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Inherited From:

isEnabled(grid) → {boolean}

Parameters:
Name Type Description
grid Hypergrid
Inherited From:
Default Value:
  • -2
Returns:
Type
boolean

isFirstFixedColumn(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Inherited From:

isFirstFixedOtherArea(grid, event) → {boolean}

am I over the column/row area

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Returns:
Type
boolean

isFirstFixedRow(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Inherited From:

isFixedColumn(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Inherited From:

isFixedRow(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Inherited From:

isTopLeft(grid, event)

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Inherited From:

overAreaDivider(grid, event) → {number}

returns the index of which divider I'm over

Parameters:
Name Type Description
grid Hypergrid
event Object

the event details

Overrides:
Returns:
Type
number

setAreaSize(grid, index, value) → {number}

set the width/height of the row/column at index

Parameters:
Name Type Description
grid Hypergrid
index number

the row/column index of interest

value number

the width/height to set to

Returns:
Type
number