Class: AlterManager

AlterManager

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

destroy()

Destroy class.

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 * repeatable

Arguments pass to alter operation.

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 * repeatable

Arguments pass to alter operation.