本文整理汇总了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;未经允许,请勿转载。 |
请发表评论