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

Dynamic disabling #39

Open
hsellik opened this issue Aug 25, 2022 · 3 comments
Open

Dynamic disabling #39

hsellik opened this issue Aug 25, 2022 · 3 comments

Comments

@hsellik
Copy link

hsellik commented Aug 25, 2022

Hi,

Just wondering if it's possible to dynamically disable v-drag?

The use-case is a component, which has a draggable prop which either enables or disables v-drag on the component.

I looked setting the attribute dynamically, but couldn't make it to work properly.

Cheers!

@blazefireio
Copy link

Yes it is possible!

I've implemented such an feature just today. You can lock the component so it wont be draggable longer. You can also resize it if needed :D

@Sirojiddin96
Copy link

How did you lock the component from dragging?
:drag="disabled"
:draggable="isMovable"

Still dragging...
I am going to implement according to user interaction, like enable drag after that drag, or disable drag.

@fsanti
Copy link

fsanti commented Jul 11, 2023

I also need to know how I can lock the component from dragging.
I try :disabled, : draggable, but nothing works.

Thanks in advance

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

4 participants