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
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.
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.
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.
getItem(){*}
Gets the data item of this node.
Returns: {*}
getSourceRowIndex(){Number}
Gets the source row index of this node.