Search code examples
nativescriptnativescript-telerik-uinativescript-plugin

NativeScript Side Drawer unhooked page


I'm new to NativeScript and I've been following the instructions here to create my app. However I find out that all pages are hooked to the drawer, how do I unhook some pages, such as Login, Create ...?


Solution

  • You can get a reference to the sidedrawer and disable the interaction.

    import { getRootView } from "tns-core-modules/application";
    
    this.drawer = <RadSideDrawer>getRootView();
    this.drawer.gesturesEnabled = false;
    

    The above is implemented in the login page of this POC application.