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

Method loadView

packages/core/ui/tab-view/index.ios.ts:250–259  ·  view source on GitHub ↗
(view: ViewBase)

Source from the content-addressed store, hash-verified

248 }
249
250 public loadView(view: ViewBase): void {
251 const tabView = this.parent as TabViewBase;
252 if (tabView && tabView.items) {
253 const index = tabView.items.indexOf(this);
254
255 if (index === tabView.selectedIndex) {
256 super.loadView(view);
257 }
258 }
259 }
260
261 public _update() {
262 const parent = <TabView>this.parent;

Callers 5

onLoadedFunction · 0.80
_addViewCoreFunction · 0.80
loadViewFunction · 0.80
_loadUnloadTabItemsMethod · 0.80

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected