-
Notifications
You must be signed in to change notification settings - Fork 21
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
[FEATURE] - change order of records by drag and drop #362
Comments
Since v.4.0.0 you can do this by adding next-admin/apps/example/options.tsx Lines 170 to 177 in 262024b
Let us know if you have any issue with this issue 🚀 |
Cool, I did not know that. But in my case I have a table SocialLinks which does not have any relationships, so I can see records only as a table on main screen and I would like to be able to change order of records on main screen, not on a form. |
Currently, Next-Admin doesn't do submit on list view, it's actually a display page. As we understand, you need a submit button on list view and drag'n'drop system to change the But this view is incompatible with current view, because drag'n'drop order can't work with list page using filter system, search or even pagination. So' this feature needs a new page, independent of list and form view We are working on a new major release, where it might be easier to implement this kind of enhancement. Let us know if you have some details about the implementation you need 🚀 |
Maybe it's better to keep the normal list view and add a "sort mode" that will remove the search, filter, sort (header columns) and pagination, adds a drag'n'drop and a button to save that save and exit from the "sort mode". This way we keep the useful list manipulations in the "classic mode" and allow ordering |
Summary
Pretty often we need to add order for records by adding an "order" column in a table.
Basic Example
So we could specify in options.tsx a column which is going to be responsible for that feature, to keep the order in that column.
Example:
Drawbacks
No response
Unresolved questions
No response
The text was updated successfully, but these errors were encountered: