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 would like to use buttons to move an item to the TOP or to the BOTTOM of my Sortable, but the docs I have read do not list any functions I can call to move things. I have looked at the JavaScript code for functions that might do it, but I don't see anything that is apparent. I'm not very experienced with programming in JavaScript.
I currently move items like this by completely re-building the Sortable, but that seems expensive compared to how Sortable.js just moves elements around in the DOM when you drag them.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would like to use buttons to move an item to the TOP or to the BOTTOM of my Sortable, but the docs I have read do not list any functions I can call to move things. I have looked at the JavaScript code for functions that might do it, but I don't see anything that is apparent. I'm not very experienced with programming in JavaScript.
I currently move items like this by completely re-building the Sortable, but that seems expensive compared to how Sortable.js just moves elements around in the DOM when you drag them.
Is there a function I can call?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions