jrief / django-admin-sortable2

Generic drag-and-drop ordering for objects in the Django admin interface
https://django-admin-sortable2.readthedocs.io/en/latest/
Other
770 stars 180 forks source link

Javascript API less dependent on UI events #305

Closed hovi closed 2 years ago

hovi commented 2 years ago

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 :-)

Edit: I see there is a related issue: #300

jrief commented 2 years ago

Before asking question on the issue tracker, please read https://github.com/jrief/django-admin-sortable2/blob/master/docs/source/contributing.rst