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

Is there any way to know slide state by gesture? #19

Open
Woongsik opened this issue Dec 27, 2022 · 3 comments
Open

Is there any way to know slide state by gesture? #19

Woongsik opened this issue Dec 27, 2022 · 3 comments

Comments

@Woongsik
Copy link

Hi, thanks for the great plugin!

I wonder if there is a way to know about slide state by gesture...
I know the this.$refs.drawer.isOpened() manually but I am looking for a way to get it by gesture and emit from the component.
Since the component uses swipe gesture ...

ie. <Drawer @leftSlideState="(open or close) => {}">
Any workaround is also welcome...

@farfromrefug
Copy link
Member

Yes should be doable. Can't do it right now. Would you want to create a PR?

@Woongsik
Copy link
Author

Hi, I can try it. Could you give me a quick instruction that I should look into?

@farfromrefug
Copy link
Member

@Woongsik the repo readme has instructions on how to use it. As for the code you could simply emit where you want to notify of state change.

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