MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / _addViewCore

Function _addViewCore

packages/core/ui/core/view-base/index.ts:1013–1023  ·  view source on GitHub ↗

* Method is intended to be overridden by inheritors and used as "protected"

(view: ViewBase, atIndex?: number)

Source from the content-addressed store, hash-verified

1011 * Method is intended to be overridden by inheritors and used as "protected"
1012 */
1013 public _addViewCore(view: ViewBase, atIndex?: number) {
1014 this._inheritStyles(view);
1015
1016 if (this._context) {
1017 view._setupUI(this._context, atIndex);
1018 }
1019
1020 if (this._isLoaded) {
1021 this.loadView(view);
1022 }
1023 }
1024
1025 /**
1026 * Load view.

Callers

nothing calls this directly

Calls 2

_setupUIMethod · 0.80
loadViewMethod · 0.80

Tested by

no test coverage detected