Reputation: 3787
I'm using ionic 2 and I want to know how to remove drag function from ion-menu ?
Upvotes: 4
Views: 1379
Reputation: 5675
For Ionic 1, look for:
<ion-pane ion-side-menu-content>
and change it to:
<ion-pane ion-side-menu-content drag-content="false">
(I know someone else attempted to answer for Ionic 1 already, but it wasn't very clear at all).
Upvotes: 0
Reputation: 2940
In ionic 2:
ionViewDidEnter() {
this.menu.swipeEnable(false);
}
check this swipeEnable(shouldEnable, menuId)
from ionic v2 docs
In ionic 1: refer to this codepen
Upvotes: 6
Reputation: 515
In ionic 2 beta 9, you can add [swipeEnabled]="false"
in html.
<ion-menu [swipeEnabled]="false">
</ion-menu>
Upvotes: 1
Reputation: 1
In your ion-menu add: swipeEnabled="false"
directive, that would do.
Upvotes: 0