MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _parentChanged

Method _parentChanged

packages/core/ui/page/page-common.ts:77–84  ·  view source on GitHub ↗
(oldParent: View)

Source from the content-addressed store, hash-verified

75 }
76
77 public _parentChanged(oldParent: View): void {
78 const newParent = this.parent;
79 if (newParent && !isFrame(newParent)) {
80 throw new Error(`Page can only be nested inside Frame. New parent: ${newParent}`);
81 }
82
83 super._parentChanged(oldParent);
84 }
85
86 public _addChildFromBuilder(name: string, value: any) {
87 if (value instanceof ActionBar) {

Callers 2

_addViewFunction · 0.45
_removeViewFunction · 0.45

Calls 1

isFrameFunction · 0.90

Tested by

no test coverage detected