当前位置: 首页>>代码示例>>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;未经允许,请勿转载。