v-drag icon indicating copy to clipboard operation
v-drag copied to clipboard

Dynamic disabling

Open hsellik opened this issue 2 years ago • 3 comments

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!

hsellik avatar Aug 25 '22 09:08 hsellik

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

blazefireio avatar Dec 07 '22 09:12 blazefireio

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.

Sirojiddin96 avatar Feb 10 '23 03:02 Sirojiddin96

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

Thanks in advance

fsanti avatar Jul 11 '23 07:07 fsanti