ui-drawer
ui-drawer copied to clipboard
isOpened
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?
- edit: I am having a burger menu button that changes icon based on the state of the drawer.
- [x] Make sure to check the demo app(s) for sample usage
- [x] Make sure to check the existing issues in this repository
@alpha-mo it already exists:
isOpened(side)isSideOpened()
You should look at the plugin typings
@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={()=>}