Class: DataManagerNode

DataView.DataManager.DataManagerNode

calc/dataManager.js, line 301

Initializes a new instance of DataManagerNode.

Parameters:
Name Type Description
dataManager DataManager

The owner DataManager instance.

calcNode Object

The underlying node in the calc model.

parentNode Object

The parent node in the calc model.

Properties:
Name Type Argument Description
collapsed boolean

The collapse status of this node.

parent DataManagerNode <nullable>

The parent node.

level Number

The level of this node.

children Array <nullable>

An array of DataManagerNode that contains the node's sub-nodes.

path Array

An array of indexes that indicate the path from the root node to the current node.

Methods

calc/dataManager.js, line 376

evaluate(formula){Object}

Evaluates the formula with the current sub-hierarchy context.

Parameters:
Name Type Description
formula string

The formula to be evaluated.

Returns: {Object} The evaluated result.
calc/dataManager.js, line 344

findChildNodeByPath(path){DataManagerNode}

Gets the child node from the relative path of this node.

Parameters:
Name Type Description
path Array

A array of numbers which indicate the relative path of the child node.

Returns: {DataManagerNode} The child node.
calc/dataManager.js, line 334

getCalculatedColumnValues(name){Array}

Gets all cell values of the specified calculated column.

Parameters:
Name Type Description
name string

The name of the calculated column.

Returns: {Array} Return array of calculated column values.
calc/dataManager.js, line 314

getItem(){*}

Gets the data item of this node.

Returns: {*}
calc/dataManager.js, line 325

getSourceRowIndex(){Number}

Gets the source row index of this node.

Returns: {Number}