Class: Transformation

Transformation

The Transformation class implements algorithms for transforming coordinates based on current settings
passed to the Handsontable.

Transformation is always applied relative to the current selection.

Members

optionsObject

Additional options which define the state of the settings which can infer transformation.

Instance of the SelectionRange, holder for coordinates applied to the table.

Methods

transformEnd(rowDelta, colDelta){CellCoords}

Sets selection end cell relative to current selection end cell (if possible).

Parameters:
Name Type Description
rowDelta Number

Rows number to move, value can be passed as negative number.

colDelta Number

Columns number to move, value can be passed as negative number.

Returns: {CellCoords}

transformStart(rowDelta, colDelta, force){CellCoords}

Selects cell relative to current cell (if possible).

Parameters:
Name Type Description
rowDelta Number

Rows number to move, value can be passed as negative number.

colDelta Number

Columns number to move, value can be passed as negative number.

force Boolean

If true the new rows/columns will be created if necessary. Otherwise, row/column will
be created according to minSpareRows/minSpareCols settings of Handsontable.

Returns: {CellCoords}