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


TypeScript MenuController.enable方法代碼示例

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


在下文中一共展示了MenuController.enable方法的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: 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

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

示例5: constructor

 constructor(private menu:MenuController) {
   // this tells the tabs component which Pages
   // should be each tab's root Page
   this.tab1Root = AgendaView
   this.tab2Root = CouncillorsView
   // this.tab3Root = View;
   menu.enable(true)
 }
開發者ID:dougestey,項目名稱:adroit,代碼行數:8,代碼來源:tabs.ts

示例6:

      (response)=> {
        this._dataservice.fbid=response.id;
        this._dataservice.username=response.name;
        this._dataservice.picture=response.picture.data.url;

        this.loading.dismiss();
        this.menu.enable(true);
        this.nav.setRoot(HomePage);
      },
開發者ID:ujjwal996,項目名稱:campChatIonic,代碼行數:9,代碼來源:login.ts

示例7: constructor

 constructor(private nav: NavController, private menu:MenuController, public modalCtrl: ModalController) {
   this.nav = nav;
   this.menu = menu;
   this.menu.enable(true);
   this.searchQuery = '';
   this.dao = new DAOPacientes();
   this.listaPacientes = this.dao.getList();
   this.pacienteCadastrado=new CadastroPaciente();
 }
開發者ID:cleybsoncardoso,項目名稱:SAEinfo,代碼行數:9,代碼來源:pacientes.ts

示例8:

          (response) =>{
              console.log(response);
              this.dataService.fbid = response.id;
              this.dataService.username = response.username;
              this.dataService.fbid = response.picture;

              this.menu.enable(true);
              this.navCtrl.setRoot(HomePage);
          },
開發者ID:aldokhayel,項目名稱:camperchat,代碼行數:9,代碼來源:login.ts

示例9: constructor

  constructor(private nav: NavController, private menu:MenuController, public modalCtrl: ModalController, private service : PacienteService,private params:NavParams) {
    this.id = params.get("setid");
    this.nav = nav;
    this.menu = menu;
    this.menu.enable(true);
    this.searchQuery = '';
    this.carregarPacientes();
    this.getNomeUser();

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

示例10:

 this.platform.ready().then(() => {
   if (media === 'LinkedIn') {
     this.linkedInLogin()
   }
   if (media === 'Twitter') {
     this.twitterLogin();
   }
   if (media === 'Email') {
     this.emailLogin();
   }
   this._menuController.enable(true);
 });
開發者ID:marenwoodruff,項目名稱:m2,代碼行數:12,代碼來源:login.component.ts


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