Class: AlterManager

AlterManager

handsontable-pro/src/plugins/formulas/alterManager.js, line 19

Alter Manager is a service that is responsible for changing the formula expressions (especially cell coordinates)
based on specific alter operation applied into the table.

For example, when a user adds a new row the algorithm that moves all the cells below the added row down by one row
should be triggered (eq: cell A5 become A6 etc).

All alter operations are defined in the "alterOperation/" directory.

Members

dataProviderDataProvider

Instance of DataProvider.

hotCore

Handsontable instance.

matrixMatrix

Instance of Matrix.

sheetSheet

Instance of Sheet.

Methods

handsontable-pro/src/plugins/formulas/alterManager.js, line 90

destroy()

Destroy class.

handsontable-pro/src/plugins/formulas/alterManager.js, line 66

prepareAlter(action, args)

Prepare to execute an alter algorithm. This preparation can be useful for collecting some variables and
states before specific algorithm will be executed.

Parameters:
Name Type Description
action String

One of the action defined in alterOperation.

args *

Arguments pass to alter operation.

handsontable-pro/src/plugins/formulas/alterManager.js, line 79

triggerAlter(action, args)

Trigger an alter algorithm and after executing code trigger local hook ("afterAlter").

Parameters:
Name Type Description
action String

One of the action defined in alterOperation.

args *

Arguments pass to alter operation.