本文整理汇总了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();
}
示例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'
},
];
}
示例3: novoPaciente
novoPaciente(){
console.log(this.id);
this.menu.enable(false);
this.paciente = new CadastroPaciente();
this.nav.push(IdentificacaoPage,{paciente: this.paciente} );
}
示例4: constructor
constructor(private platform: Platform,
private params: NavParams,
private menu: MenuController){
this.from = this.params.get('from');
this.menu.enable(false);
this.searchQuery = '';
}
示例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)
}
示例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);
},
示例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();
}
示例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);
},
示例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();
}
示例10:
this.platform.ready().then(() => {
if (media === 'LinkedIn') {
this.linkedInLogin()
}
if (media === 'Twitter') {
this.twitterLogin();
}
if (media === 'Email') {
this.emailLogin();
}
this._menuController.enable(true);
});