How to remove drag and drop function from ion menu?

I am using ionic 2 and I want to know how to remove the drag and drop function from the ionic menu?

+4
source share
5 answers
this.app.getComponent('leftMenu').isSwipeEnabled = false;
+1
source

In ionic 2 :

ionViewDidEnter() {
    this.menu.swipeEnable(false);
  }

check this swipeEnable(shouldEnable, menuId)out of ionic v2 docs

In ionic 1 : refer to this codepen

+6
source

2 beta 9 [swipeEnabled]="false" html.

<ion-menu [swipeEnabled]="false">
</ion-menu>
+1

swipeEnabled="false", .

0

Ionic 1 :

<ion-pane ion-side-menu-content>

:

<ion-pane ion-side-menu-content drag-content="false">

( , - 1 , ).

0

Source: https://habr.com/ru/post/1626344/


All Articles