Class: CellValue

CellValue

handsontable-pro/src/plugins/formulas/cell/value.js, line 10

Class responsible for wrapping formula expression. It contains calculated value of
the formula, an error if it has happened and cell references which indicates a relationship with regular
cells. This object uses physical cell coordinates.

Members

staticCellValue.STATE_COMPUTING

Computing state indicates cells under processing.

staticCellValue.STATE_OUT_OFF_DATE

Out of date state indicates cells ready for recomputing.

staticCellValue.STATE_UP_TO_DATE

Up to date state indicates cells with fresh computed value.

errorString null

Error name.

precedentsArray

List of precedents cells.

stateString

Indicates cell state.

value*

Computed value.

Methods

handsontable-pro/src/plugins/formulas/cell/value.js, line 146

addPrecedent(cellReference)

Add precedent cell to the collection.

Parameters:
Name Type Description
cellReference CellReference

Cell reference object.

handsontable-pro/src/plugins/formulas/cell/value.js, line 170

clearPrecedents()

Clear all precedent cells.

handsontable-pro/src/plugins/formulas/cell/value.js, line 107

getError(){String|null}

Get error name for this cell.

Returns: {String|null}
handsontable-pro/src/plugins/formulas/cell/value.js, line 179

getPrecedents(){Array}

Get precedent cells.

Returns: {Array}
handsontable-pro/src/plugins/formulas/cell/value.js, line 89

getValue(){*}

Get computed value.

Returns: {*}
handsontable-pro/src/plugins/formulas/cell/value.js, line 116

hasError(){Boolean}

Check if cell value is marked as error.

Returns: {Boolean}
handsontable-pro/src/plugins/formulas/cell/value.js, line 198

hasPrecedent(cellReference){Boolean}

Check if cell reference is precedents this cell.

Parameters:
Name Type Description
cellReference CellReference

Cell reference object.

Returns: {Boolean}
handsontable-pro/src/plugins/formulas/cell/value.js, line 188

hasPrecedents(){Boolean}

Check if cell value has precedents cells.

Returns: {Boolean}
handsontable-pro/src/plugins/formulas/cell/value.js, line 137

isState(){Boolean}

Check cell state.

Returns: {Boolean}
handsontable-pro/src/plugins/formulas/cell/value.js, line 160

removePrecedent(cellReference)

Remove precedent cell from the collection.

Parameters:
Name Type Description
cellReference CellReference

Cell reference object.

handsontable-pro/src/plugins/formulas/cell/value.js, line 98

setError(error)

Set error message for this cell.

Parameters:
Name Type Description
error String

Error name.

handsontable-pro/src/plugins/formulas/cell/value.js, line 125

setState(state)

Set cell state.

Parameters:
Name Type Description
state Number

Cell state.

handsontable-pro/src/plugins/formulas/cell/value.js, line 80

setValue(value)

Set computed value.

Parameters:
Name Type Description
value *