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


TypeScript ionic-angular.MenuController類代碼示例

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


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

示例1: constructor

  constructor(private nav: NavController, private menu: MenuController) {
    this.menu.enable(true, 'offerMenu');
    this.menu.enable(false, 'hireMenu');
    this.map = null;
    this.loading = Loading.create({
      content: "Cargando mapa...",
      duration: 3000,
      dismissOnPageChange: false
    });

    this.loadMap();
  }
開發者ID:araujomelogno,項目名稱:Facilita,代碼行數:12,代碼來源:offer-service-home.ts

示例2: constructor

 constructor(public navCtrl: NavController, public menu: MenuController) {
   this.rootPage = 'ProfileListPage';
   this.menu.enable(true, 'menu-profile');
   this.items = [
     {
       title: 'Type One',
       page: 'ProfileOnePage'
     },
     // {
     //   title: 'Type Two',
     //   page: ProfileTwoPage
     // },
     {
       title: 'Type Three',
       page: 'ProfileThreePage'
     },
     {
       title: 'Type Four',
       page: 'ProfileFourPage'
     },
     {
       title: 'Profile Settings',
       page: 'ProfileSettingsPage'
     },
   ];
 }
開發者ID:Jefferson227,項目名稱:ionic3-components,代碼行數:26,代碼來源:profile.ts

示例3: constructor

 constructor(private platform: Platform,
             private params: NavParams,
             private menu: MenuController){
     
     this.from = this.params.get('from');
     this.menu.enable(false);
     this.searchQuery = '';
 }
開發者ID:KantaP,項目名稱:OMC_Mobile4,代碼行數:8,代碼來源:googleMap.ts

示例4: openPage

 openPage(page){
   if(page=='home') {
     this.rootPage=TabsPage;
     this.menu.close();
   }
   if(page=='tabs') {
     this.rootPage=HellopagePage;
     this.menu.close();
   }
   if(page == 'page') {
     this.rootPage=EcommerceHomePage;
     this.menu.close();
   }
 }
開發者ID:apk093,項目名稱:ionic2-ecommerce,代碼行數:14,代碼來源:app.ts

示例5: openPage

  openPage(page) {
    let storage = new Storage(LocalStorage);
    if (page.title == 'signIn' || page.title == 'signOut') {
      this.global.socket.emit('access', { token: '' });
      this.global.member = {
        id: '0', type: 'guest', typeMessage: 'roleGuest', picture: 'build/img/remax.png',
        name: 'Remax Thailand', shopName: ''
      };
      storage.set('memberInfo', JSON.stringify(this.global.member));
      //storage.remove('token');
      this.menu.close().then(() => {

        storage.set('page', page.title);
        this.global.isLogin = false;
        this.global.isMember = false;
        this.global.isShowMenu = false;
        this.nav.setRoot(LoginPage, {
          global: this.global
        });
      });
    }
    /*else if (page.title == 'cart' && this.global.cart.qty == 0) {
      
    }*/
    else {
      storage.set('page', page.title).then(() => {
        this.nav.setRoot(page.component, {
          global: this.global
        });
      });
    }
  }
開發者ID:RemaxThailand,項目名稱:RemaxMobile,代碼行數:32,代碼來源:app.ts

示例6: openPage

 openPage(page) {
   // close the menu when clicking a link from the menu
   this.menu.close();
   // navigate to the new page if it is not the current page
   //let nav = this.app.getComponent('nav');
   this.nav.setRoot(page.component);
 }
開發者ID:smukov,項目名稱:AvI,代碼行數:7,代碼來源:app.component.ts

示例7: novoPaciente

  novoPaciente(){
    console.log(this.id);
    this.menu.enable(false);
    this.paciente = new CadastroPaciente();
    this.nav.push(IdentificacaoPage,{paciente: this.paciente} );

  }
開發者ID:cleybsoncardoso,項目名稱:SAEinfo,代碼行數:7,代碼來源:pacientes.ts

示例8: onBackButton

 private onBackButton() {
     try {
         if (this.menu.isOpen()) {
             this.menu.close();
         } else {
             var activePage = this.navController.getActive();
             if (activePage.instance.onBackButton) {
                 activePage.instance.onBackButton();
             } else {
                 this.navController.pop();
             }
         }
     } catch (err) {
         this.loggingService.log("Error onBackButton", err);
     }
 }
開發者ID:janwillemb,項目名稱:Ema-Personal-Wiki,代碼行數:16,代碼來源:app.component.ts

示例9:

	playAudio(sermon) {
		this.audioProvider.play({
			url: this.rootUrl + '/play/mp3/' + sermon.MediaAudio.id,
			title: sermon.MessageMessage.title,
			speaker: sermon.MessageAuthor.name
		});
		this.menuCtrl.open();
	}
開發者ID:tonymccallie,項目名稱:gracepoint,代碼行數:8,代碼來源:sermon.ts

示例10: logoutUserOut

  logoutUserOut() {

    this.menu.close();
    window.sessionStorage.setItem("tokenid", '');
    let nav = this.app.getRootNav()
    nav.setRoot(LoginPage);
    
  }
開發者ID:artman202,項目名稱:tangent-app,代碼行數:8,代碼來源:app.ts


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