本文整理匯總了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);
});