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

Method setParent

web/pgadmin/static/js/tree/tree_nodes.ts:251–260  ·  view source on GitHub ↗
(parent)

Source from the content-addressed store, hash-verified

249 }
250
251 setParent(parent) {
252 this.parentNode = parent;
253 this.path = this.id;
254 if (this.id)
255 if (parent !== null && parent !== undefined && parent.path !== undefined) {
256 this.path = parent.path + '/' + this.id;
257 } else {
258 this.path = '/browser/' + this.id;
259 }
260 }
261
262 getData() {
263 if (this.data === undefined) {

Callers 2

constructorMethod · 0.95
addChildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected