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

Is there any way to know slide state by gesture?

Open Woongsik opened this issue 2 years ago • 3 comments

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...

Woongsik avatar Dec 27 '22 11:12 Woongsik

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

farfromrefug avatar Dec 27 '22 11:12 farfromrefug

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

Woongsik avatar Dec 27 '22 12:12 Woongsik

@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.

farfromrefug avatar Dec 27 '22 15:12 farfromrefug