Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isOpened #31

Open
2 tasks done
alpha-mo opened this issue Apr 3, 2024 · 2 comments
Open
2 tasks done

isOpened #31

alpha-mo opened this issue Apr 3, 2024 · 2 comments

Comments

@alpha-mo
Copy link

alpha-mo commented Apr 3, 2024

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.
  • Make sure to check the demo app(s) for sample usage
  • Make sure to check the existing issues in this repository
@farfromrefug
Copy link
Member

@alpha-mo it already exists:

  • isOpened(side)
  • isSideOpened()

You should look at the plugin typings

@alpha-mo
Copy link
Author

alpha-mo commented Apr 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants