Replies: 3 comments
-
you would still have to handle the visual effect of then moving the item to the first/last position. Before implementing something like this, have a look at the API of https://github.com/SortableJS/Sortable – I havn't found any functionality which offers this. Something you can try is to reorder the DOM yourself and afterwards reorder all
what do you mean by that? |
Beta Was this translation helpful? Give feedback.
-
I know I can do it by hand and I can imagine how to do it. I am simply giving you feedback on your ts/js code and it's possible improvements so that it can be more useful. |
Beta Was this translation helpful? Give feedback.
-
In version 2.1 this feature has been implemented. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I checked the sources for the project to look for some kind of API, that allows reordering using different ways.
A few examples:
Correct me if I looked wrong, but it's pity, that I can't use the already nice working API to do this functionality, since the functionality is pretty much already there, just mostly hooked on drag & drop events.
The functionality is not complicated and I can just write my own code, but you can consider that next time you refactor your frontend code :-)
Beta Was this translation helpful? Give feedback.
All reactions