v-drag
v-drag copied to clipboard
Dynamic disabling
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!
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
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.
I also need to know how I can lock the component from dragging. I try :disabled, : draggable, but nothing works.
Thanks in advance