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 and
give the possibility to translate indexes. -
rangeSelectionRange
-
Instance of the SelectionRange, holder for visual 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} Visual coordinates after transformation.
-
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 tominSpareRows/minSpareCols
settings of Handsontable.Returns: {CellCoords} Visual coordinates after transformation.