MCPcopy Create free account
hub / github.com/handsontable/handsontable / addChild

Method addChild

handsontable/src/utils/dataStructures/tree.ts:136–139  ·  view source on GitHub ↗

* Adds a node to tree leaves. Added node is linked with the parent node through "parent" property. * * @param {TreeNode} node A TreeNode to add.

(node: TreeNode<T>)

Source from the content-addressed store, hash-verified

134 * @param {TreeNode} node A TreeNode to add.
135 */
136 addChild(node: TreeNode<T>) {
137 node.parent = this;
138 this.childs.push(node);
139 }
140
141 /**
142 * @memberof TreeNode#

Callers 4

cloneTreeMethod · 0.95
replaceTreeWithMethod · 0.95
createNodeFunction · 0.95
tree.unit.tsFile · 0.45

Calls 1

pushMethod · 0.45

Tested by 1

createNodeFunction · 0.76