UNPKG

874 BTypeScriptView Raw
1import { NavOptions, NavSegment } from './nav-util';
2import { ViewController } from './view-controller';
3export interface Nav {
4 goToRoot(opts: NavOptions): Promise<any>;
5}
6export interface Tabs {
7 viewCtrl: ViewController;
8 _tabs: Tab[];
9 select(tabOrIndex: number | Tab, opts: NavOptions, fromUrl: boolean): void;
10 _top: number;
11 setTabbarPosition(top: number, bottom: number): void;
12 _getSelectedTabIndex(secondaryId: string, fallbackIndex?: number): number;
13 getByIndex(index: number): Tab;
14}
15export interface Tab {
16 tabUrlPath: string;
17 tabTitle: string;
18 index: number;
19 _segment: NavSegment;
20}
21export interface Content {
22 resize(): void;
23}
24export interface Footer {
25}
26export interface Header {
27}
28export interface Navbar {
29 setBackButtonText(backButtonText: string): void;
30 hideBackButton: boolean;
31 didEnter(): void;
32}