Search code examples
angularnativescriptangular-nativescript

prevent RadSideDrawer from opening


I have a RadSideDrawer that is apparently available through the whole app. Now, there are some routes that I want to prevent the drawer from showing.

I thought of the logical way of doing this is by listening the onDrawerOpening event. However, the event object has no way to prevent the sidedrawer from transiotioning.

Is there a way to handle this scenario?

Thanks!


Solution

  • You may toggle gesturesEnabled property of SideDrawer whenever you want to enable / disable the swipe gestures.

    There is also allowEdgeSwipe which can be used to enable / disable only the open gesture since v4.2.