Files
NativeScript/tns-core-modules/ui/tab-navigation-base/tab-content-item/tab-content-item.ios.ts
2019-06-25 16:52:01 +03:00

33 lines
1.0 KiB
TypeScript

// Requires
import { TabContentItemBase } from "./tab-content-item-common";
export * from "./tab-content-item-common";
export class TabContentItem extends TabContentItemBase {
// tslint:disable-next-line
private __controller: UIViewController;
public setViewController(controller: UIViewController, nativeView: UIView) {
this.__controller = controller;
this.setNativeView(nativeView);
}
public disposeNativeView() {
this.__controller = undefined;
this.setNativeView(undefined);
}
// TODO: Handle this for BOTTOM NAVIGATION with canBeLoaded in tab-cotent-item-common
// public loadView(view: ViewBase): void {
// const tabView = this.parent as TabNavigationBase;
// if (tabView && tabView.items) {
// const index = tabView.items.indexOf(this);
// // if (index === tabView.selectedIndex) {
// // super.loadView(view);
// // }
// super.loadView(view);
// }
// }
}