MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / addNewNode

Method addNewNode

web/regression/javascript/tree/tree_fake.js:62–70  ·  view source on GitHub ↗
(id, data, domNode, path)

Source from the content-addressed store, hash-verified

60 }
61
62 addNewNode(id, data, domNode, path) {
63 this.treeToOurTreeTranslator[id] = id;
64 if (path !== null && path !== undefined) {
65 if (typeof(path) === 'object') path = path.join('/');
66 this.treeToOurTreeTranslator[id] = path != '' ? path + '/' + id : id;
67 if (path.indexOf('/browser/') != 0) path = path != '' ? '/browser/' + path : undefined;
68 }
69 return super.addNewNode(id, data, domNode, path);
70 }
71
72 addChild(parent, child) {
73 child.setParent(parent);

Callers 5

recursivelyAddNodesMethod · 0.45
treeTestsFunction · 0.45
tree_spec.jsFile · 0.45

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected