ui-drawer icon indicating copy to clipboard operation
ui-drawer copied to clipboard

isOpened

Open alpha-mo opened this issue 1 year ago • 2 comments

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 avatar Apr 03 '24 21:04 alpha-mo

@alpha-mo it already exists:

  • isOpened(side)
  • isSideOpened()

You should look at the plugin typings

farfromrefug avatar Apr 05 '24 19:04 farfromrefug

@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={()=>}

alpha-mo avatar Apr 06 '24 22:04 alpha-mo