當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript Tabs.select方法代碼示例

本文整理匯總了TypeScript中ionic-angular.Tabs.select方法的典型用法代碼示例。如果您正苦於以下問題:TypeScript Tabs.select方法的具體用法?TypeScript Tabs.select怎麽用?TypeScript Tabs.select使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ionic-angular.Tabs的用法示例。


在下文中一共展示了Tabs.select方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: ionViewDidEnter

 ionViewDidEnter() {
   if (JSON.parse(localStorage.getItem("doLogin"))) {
     this.tabRef.select(0);
   } else {
     this.tabRef.select(2);
   }
 }
開發者ID:junjieruan,項目名稱:ionicdemo,代碼行數:7,代碼來源:tabs.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);
 }  
開發者ID:rubyjedi,項目名稱:RealBugTrackerClient,代碼行數:7,代碼來源:identify_plant.ts

示例3: 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

示例4: 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

示例5: 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

示例6: 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

示例7:

 (lastTabIndex: number) => {
     console.log('initializeApp():lastTabIndex = ' +
         lastTabIndex);
     this.tabs.select(lastTabIndex);
 });
開發者ID:zhu04303661,項目名稱:ionic-recorder,代碼行數:5,代碼來源:app.component.ts

示例8: ionViewDidEnter

 ionViewDidEnter(){
   this.tabRef.select(0);
 }
開發者ID:zhangxianmeng,項目名稱:ionicDemo,代碼行數:3,代碼來源:tabs.ts

示例9: 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

示例10: itemSelected

 itemSelected(item) {
   this.store.set("currrentId", JSON.stringify(item));
   var t: Tabs = this.nav.parent;
   t.select(1);
 }
開發者ID:thgautier92,項目名稱:couchDB,代碼行數:5,代碼來源:form-3.ts


注:本文中的ionic-angular.Tabs.select方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。