本文整理汇总了TypeScript中ionic-angular.MenuController.swipeEnable方法的典型用法代码示例。如果您正苦于以下问题:TypeScript MenuController.swipeEnable方法的具体用法?TypeScript MenuController.swipeEnable怎么用?TypeScript MenuController.swipeEnable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ionic-angular.MenuController
的用法示例。
在下文中一共展示了MenuController.swipeEnable方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: ngOnInit
ngOnInit(): any {
this._menuController.swipeEnable(false);
this._menuController.enable(false);
this.twitterSubscription = this._twitterApi.twitterCredentials.subscribe(
(twitterCredentials) => {
this.twitterCredentials = twitterCredentials;
},
err => console.log('twitterService subscribe error:', err),
() => {
console.log('finished subscribing to twitter service')
}
);
this.linkedInSubscription = this._linkedInApi.linkedInCredentialsEmitter.subscribe(
(linkedInCredentials) => {
this.access_token = linkedInCredentials.access_token;
},
err => console.log('LinkedIn Service subscribe error:', err),
() => {
console.log('finished subscribing to LinkedIn service')
}
);
this.userSubscription = this._userService.user.subscribe(
(user) => {
if (user) {
console.log(user);
this._navController.setRoot(EventsPage);
}
}
)
this.errorSubscription = this._authService.loginUserError.subscribe(
(error) => {
console.log(error);
this.loggingIn = false;
if (error.message){
this.errorMessage = error.message;
}
}
)
}
示例2: onPageDidEnter
onPageDidEnter() {
this.menu.enable(false, "loggedInMenu");
this.menu.enable(false, "loggedOutMenu");
this.menu.swipeEnable(false, "loggedOutMenu");
}
示例3: ionViewWillLeave
ionViewWillLeave() {
this.menuCtrl.enable(true);
this.menuCtrl.swipeEnable(true);
}
示例4: ionViewDidEnter
ionViewDidEnter() {
this.menuCtrl.enable(false);
this.menuCtrl.swipeEnable(false);
}
示例5: ionViewWillLeave
ionViewWillLeave() {
this.menu.swipeEnable(true);
}
示例6: ionViewDidEnter
ionViewDidEnter() {
this.menu.swipeEnable(false);
}
示例7: onPageDidEnter
onPageDidEnter() {
this.menu.enable(true);
this.menu.swipeEnable(true);
}
示例8: constructor
constructor(private navCtrl: NavController, private authServ: AuthService,
private loadingCtrl: LoadingController, private menu: MenuController) {
this.menu.swipeEnable(false);
}
示例9:
this.viewController.willEnter.subscribe(()=> {
this.menuController.close();
this.menuController.swipeEnable(true);
});
示例10: ionViewDidEnter
ionViewDidEnter() {
// the left menu should be disabled on the login page
this.menu.enable(false);
this.menu.swipeEnable(false);
}