NativeScript Core

RadSideDrawer Programmatic Control

RadSideDrawer exposes API for programmatic control of its state.

The showDrawer(), closeDrawer() and toggleDrawerState() Methods

The showDrawer() method is used to open the drawer. closeDrawer() method is used to close the drawer and toggleDrawerState() is used to switch to the opposite state depending on the current one - open or closed.

The gesturesEnabled Property

Using the gesturesEnabled property you can prevent the end users from opening or closing the RadSideDrawer using gestures.


Want to see more examples using RadSideDrawer? Check our SDK examples repository on GitHub. You will find this and a lot more practical examples with NativeScript UI.

Related articles you mind find useful: