vue-fluid-dnd
vue-fluid-dnd copied to clipboard
isDraggable example adjustment
"vue": "^3.5.10",
"vue-fluid-dnd": "^0.7.0"
Copied and pasted example, the list should be ref and the config should just be in the declaration:
const list = ref([1, 2, 3, 4]); const { parent } = useDragAndDrop(list, { isDraggable: (el) => !el.classList.contains("is-not-draggable") });