本文整理汇总了TypeScript中ionic-angular.Tabs类的典型用法代码示例。如果您正苦于以下问题:TypeScript Tabs类的具体用法?TypeScript Tabs怎么用?TypeScript Tabs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Tabs类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: next_page
next_page() {
var t: Tabs = this.nav.parent;
var myTab = t.getSelected();
var myTabIndex = t.getIndex(myTab);
t.select(1 + myTabIndex);
}
开发者ID:rubyjedi,项目名称:RealBugTrackerClient,代码行数:7,代码来源:identify_plant.ts
示例2: next_page
next_page() {
var t: Tabs = this.nav.parent;
var myTab = t.getSelected();
var myTabIndex = t.getIndex(myTab);
t.select(1 + myTabIndex); // SKIP OVER THE IDENTIFY_PLANT STUFF FOR NOW . . .
}
开发者ID:rubyjedi,项目名称:RealBugTrackerClient,代码行数:7,代码来源:identify_specimen.ts
示例3: moodAction
moodAction(mood){
console.log(mood);
switch (mood.type) {
case 'voice':
alert("voice");
var t: Tabs = this.nav.parent;
t.select(2);
break;
case 'relax':
this.content.setRoot(Page3, {}, { animate: false });
break;
default:
alert('default');
}
}
开发者ID:jaypatel16,项目名称:jaytest,代码行数:17,代码来源:page2.ts
示例4: goto_start_page
goto_start_page() {
var t: Tabs = this.nav.parent;
t.select(1); // UGLY HARD-CODE, but we KNOW the Start Page is "Page 1"
}
开发者ID:rubyjedi,项目名称:RealBugTrackerClient,代码行数:4,代码来源:thanks_for_snapping.ts
示例5: ionViewDidEnter
ionViewDidEnter() {
if (JSON.parse(localStorage.getItem("doLogin"))) {
this.tabRef.select(0);
} else {
this.tabRef.select(2);
}
}
开发者ID:junjieruan,项目名称:ionicdemo,代码行数:7,代码来源:tabs.ts
示例6:
this.platform.registerBackButtonAction(() => {
let child: Tab = this.tabs.getSelected();
if(child['_views'].length > 1) {
child.pop();
} else {
navigator['app'].exitApp();
}
});
开发者ID:colinjlacy,项目名称:ionic-2-smart-tabs,代码行数:8,代码来源:tabs.ts
示例7: goToPage
/**
* Go to a page (via menu selection)
* @returns {void}
*/
public goToPage(page: TabPage): void {
const tabIndex: number = page.tabIndex;
// console.log('goToPage: ' + tabIndex + ', tabs: ' + this.tabs);
if (typeof this.tabs !== undefined) {
// we need this conditional because @ViewChild does not work
// when karma and this.tabs ends up undefined in karma
// TODO: make sure you get rid of this hack
this.tabs.select(tabIndex);
}
this.menu.close();
}
开发者ID:zhu04303661,项目名称:ionic-recorder,代码行数:15,代码来源:app.component.ts
示例8: dismissModal
dismissModal() {
//dismiss the modal
this.viewCtrl.dismiss();
//switch to the items tab
this.parent.select(1);
//No idea how to inject data into the tab
}
开发者ID:frankieali4,项目名称:beacon-scavenger-hunt,代码行数:11,代码来源:congratsModal.ts
示例9:
(lastTabIndex: number) => {
console.log('initializeApp():lastTabIndex = ' +
lastTabIndex);
this.tabs.select(lastTabIndex);
});
开发者ID:zhu04303661,项目名称:ionic-recorder,代码行数:5,代码来源:app.component.ts
示例10: ionViewDidEnter
ionViewDidEnter(){
this.tabRef.select(0);
}
开发者ID:zhangxianmeng,项目名称:ionicDemo,代码行数:3,代码来源:tabs.ts
注:本文中的ionic-angular.Tabs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论