nativescript-community / ui-drawer

NativeScript plugin that allows you to easily add a side drawer (side menu) to your projects.
https://nativescript-community.github.io/ui-drawer/
Apache License 2.0
24 stars 12 forks source link

isOpened #31

Open alpha-mo opened 7 months ago

alpha-mo commented 7 months ago

Since closing the drawer is possible with both: drawer.close() , gesture and backdrop tap it just seems logical that there would be a boolean property isOpened in order to be able to track the state of the drawer.

I looked almost everywhere and just can find a work around, am I missing something here?

farfromrefug commented 7 months ago

@alpha-mo it already exists:

You should look at the plugin typings

alpha-mo commented 7 months ago

@alpha-mo it already exists:

* `isOpened(side)`

* `isSideOpened()`

You should look at the plugin typings

yea but that's a function not an observable property

but I managed to get what I need with events instead. on:close={()=>}