You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to have two containers, one being a Sortable, and the other one being a grid Snappable(swappable). What I'm trying to achieve is having elements from the Sortable container dragged onto the Snappable grid.
If I declare them separately like this:
`const sortable = new Sortable(document.querySelectorAll('.draggable-container'), {
draggable: '.draggable-element',
});
i am not able to drag any elements between the two.
The only method I've managed to get something like this to work is by having two sortables declared at the same time, like in the Multiple containers example, but this is not what I want as I'd like to preferably keep the snappable/swapping features, and I also want to basically duplicate/create a new copy on the element from the Sortable container onto the Swappable element.
Is this even possible? If so, any examples of how I can achieve this would be welcomed.
Library version: 1.1.3
Browsers: all
Tech stack: TypeScript v5.4.
The text was updated successfully, but these errors were encountered:
I'd like to have two containers, one being a Sortable, and the other one being a grid Snappable(swappable). What I'm trying to achieve is having elements from the Sortable container dragged onto the Snappable grid.
If I declare them separately like this:
`const sortable = new Sortable(document.querySelectorAll('.draggable-container'), {
draggable: '.draggable-element',
});
i am not able to drag any elements between the two.
The only method I've managed to get something like this to work is by having two sortables declared at the same time, like in the Multiple containers example, but this is not what I want as I'd like to preferably keep the snappable/swapping features, and I also want to basically duplicate/create a new copy on the element from the Sortable container onto the Swappable element.
Is this even possible? If so, any examples of how I can achieve this would be welcomed.
The text was updated successfully, but these errors were encountered: