MCPcopy
hub / github.com/palantir/plottable / parent

Method parent

src/components/component.ts:567–576  ·  view source on GitHub ↗
(parent?: ComponentContainer)

Source from the content-addressed store, hash-verified

565 */
566 public parent(parent: ComponentContainer): this;
567 public parent(parent?: ComponentContainer): any {
568 if (parent === undefined) {
569 return this._parent;
570 }
571 if (parent !== null && !parent.has(this)) {
572 throw new Error("Passed invalid parent");
573 }
574 this._parent = parent;
575 return this;
576 }
577
578 /**
579 * @returns {Bounds} for the component in pixel space, where the topLeft

Callers 15

redrawMethod · 0.95
detachMethod · 0.95
originToRootMethod · 0.95
isRootMethod · 0.95
groupTests.tsFile · 0.80
tableTests.tsFile · 0.80
componentTests.tsFile · 0.80
_adoptAndAnchorMethod · 0.80
rootMethod · 0.80
runFunction · 0.80
runFunction · 0.80
runFunction · 0.80

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected