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] Add sortable rows in ui/table component #5522

Merged
merged 4 commits into from
Nov 29, 2023

Commits on Nov 29, 2023

  1. Implement new sortable_controller.js with sortable.js and `rails/…

    …request.js`
    
    The `onEnd` method, sends a PATCH request to update item positions,
    using `@rails/request.js` for secure AJAX calls with proper CSRF token 
    handling.
    
    https://github.com/SortableJS/Sortable
    https://github.com/rails/requestjs-rails
    rainerdema committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    0b21c42 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5666ff2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1a33703 View commit details
    Browse the repository at this point in the history
  4. Add sortable feature to ui/table component and update preview toggles

    - Integrate sorting rows functionality with the 
    `sortable_controller.js`.
    - Enhanced the preview section to allow enabling and disabling all table
      functionalities, including sorting, search, filters, batch actions,
      and scopes.
    rainerdema committed Nov 29, 2023
    Configuration menu
    Copy the full SHA
    a0b8a40 View commit details
    Browse the repository at this point in the history