Repository navigation
Moving between lists that share data #2358
|
We have a product that needs a simple way to manual reorder items in a list that can have 100+ items. I have gotten pretty close to this, but still have some issues that would have to be fixed.
I have created a simple vue3 codesandbox with a demo: https://codesandbox.io/p/github/codetakki/sort-same-list-poc/ |
Replies: 1 comment 2 replies
|
To hide the original item being moved so that only the dragged preview (or drag clone) is visible during transit between linked lists, you can configure Sortable's built-in CSS class hooks: Solution:When SortableJS begins a drag, it applies Accompanying CSS:Setting |
To hide the original item being moved so that only the dragged preview (or drag clone) is visible during transit between linked lists, you can configure Sortable's built-in CSS class hooks:
Solution:
When SortableJS begins a drag, it applies
ghostClassto the placeholder left in the original list andchosenClassto the selected item.