Skip to content
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

Admin table - move to page and paginated reordering #14051

Merged
merged 14 commits into from
Dec 29, 2023

Conversation

nfourtythree
Copy link
Contributor

Description

Currently, it is not possible to use drag-and-drop reordering on data being provided from a table data endpoint.

This PR adds this feature using a new action endpoint supplied in the options paginatedReorderAction. It is a new endpoint to avoid any compatibility issues with the current reorderAction used for tables with static table data.

Along with this a moveToPageAction has been added to make things easy when moving an item from one page to another. There is also a new method in the AdminTable helper class to help with the logic of making the data move (moveToPage()).

Other improvements in this PR:

  • Row highlighting update to show similar to element indexes
  • Footer actions similar to element index
  • Admin table now bubbles up cell and row click and double click events

# Conflicts:
#	src/web/assets/admintable/dist/css/app.css
#	src/web/assets/admintable/dist/css/app.css.map
#	src/web/assets/admintable/dist/js/app.js
#	src/web/assets/admintable/dist/js/app.js.map
@nfourtythree nfourtythree self-assigned this Dec 18, 2023
@nfourtythree nfourtythree marked this pull request as ready for review December 19, 2023 08:39
@brandonkelly brandonkelly changed the base branch from develop to 5.0 December 29, 2023 01:21
@brandonkelly brandonkelly changed the base branch from 5.0 to 4.6 December 29, 2023 10:20
@brandonkelly brandonkelly merged commit a615785 into 4.6 Dec 29, 2023
@brandonkelly brandonkelly deleted the feature/vue-admintable-paginated-reordering branch December 29, 2023 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants