I am using ionic 2 and I want to know how to remove the drag and drop function from the ionic menu?
this.app.getComponent('leftMenu').isSwipeEnabled = false;
In ionic 2 :
ionViewDidEnter() { this.menu.swipeEnable(false); }
check this swipeEnable(shouldEnable, menuId)out of ionic v2 docs
swipeEnable(shouldEnable, menuId)
In ionic 1 : refer to this codepen
2 beta 9 [swipeEnabled]="false" html.
[swipeEnabled]="false"
<ion-menu [swipeEnabled]="false"> </ion-menu>
swipeEnabled="false", .
swipeEnabled="false"
Ionic 1 :
<ion-pane ion-side-menu-content>
:
<ion-pane ion-side-menu-content drag-content="false">
( , - 1 , ).
Source: https://habr.com/ru/post/1626344/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1626339/adding-namespaces-to-xml-with-boost&usg=ALkJrhh_iQyUA1OAyU8iVRyPYZ5bSLRSIQhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1626340/add-xml-stylesheet-processing-instructions-to-boost-propertytree&usg=ALkJrhhXHyjdAc1mrHjb3_aaVMTqaO9yPQHow to cancel a long-running async task in a C # Winforms application - multithreadingserver side excel export on client side - javaDesign approach: exporting Excel in client v / s server-side - javaHow do I notify my Android app about permissions granted by cyberoam if Wi-Fi is connected? - androidhow to rotate leaflet.js card - javascripthibernate createAlias ββwith sentence generates invalid request - javaHow to use Autoprefixer with Symfony2 - phpJavaScript / jQuery when clicked, confirm fire twice - javascriptAll Articles