Closed johnvuko closed 2 years ago
That would be nice feature! Is there currently a workaround, beside the trick you gave?
That would be nice feature! Is there currently a workaround, beside the trick you gave?
<draggable
:disabled="true"
v-model="reorderedObjects"
item-key="id">
<template #item="{element}">
<y-widget
:widget="element"
:editing="editing" />
</template>
</draggable>
disabled: true // Disables the sortable if set to true.
Hello, I would like to be able to enable / disable the draggable feature and just act as a simple div for example. The reason is to avoid to rebuild / redraw the elements inside and so have better performance.
Currently I have something like this:
My problem is in my component
y-widget
make an expensive HTTP request (which I could / would not do anywhere else). Everytime I switch theediting
variable, it'is a new widget and there is a new HTTP request.Just for performance the ability to avoid to redraw can justify this feature, which doesn't seems to complex.
And using
disabled
ondraggable
only works the first time.