-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Programmatically move an element (and trigger FLIP animation) #1954
Comments
I actually in need of this feature too. Recently, I have been trying to find a way to programmatically move an item to another list for some auto movement feature I'm trying to build. Pretty sad to find out you there's not such way to do that. |
Added |
Hello Googlers! If you're stumbling across this while searching for Sortable FLIP or similar, it appears that this is now accomplished through the sortable.sort(order.reverse(), true) Thanks @owen-m1! |
PLEASE READ THE CONTRIBUTION GUIDELINES HERE!
Failure to comply may have your issue automatically closed.
Summary
Please answer the following questions in sentences.
There should be a way to programmatically move a single element in the array in a way that triggers the animations. SortableJS has great FLIP animation functionality that happens while dragging. It also has a
.sort()
function which allows you to sort the elements, but it does not animate. I realize that it would a lot to coordinate animation during.sort()
(although that would be nice). But I'm guessing that it would/should be easy to move a single item from one place in the list to another in a way that triggers the animation.I'm working on an Electron application which offers menu items to move elements. But the "jumping" items is bad UX. If I can't do this with Sortable, I'll need to add another library to my project to get this type of functionality.
Anyone who wants to use SortableJS in a complex UI with more accessible ways of "dragging" elements (perhaps for those with mobility issues).
The text was updated successfully, but these errors were encountered: