Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you create a View that's a table with some click sort columns, the links to click and sort won't actually be added.
I'll share a patch in a little bit that gets it working, but the styling isn't great (the ascending/descending arrows don't line up right and don't look super Radix-y).
Also, enabling AJAX on the View (even with the page) doesn't work - it still does the full page reload.
So, the patch will need some work before being merged!
Comment | File | Size | Author |
---|---|---|---|
#2 | radix-views-click-sort-2938145-2.patch | 1.1 KB | dsnopek |
Comments
Comment #2
dsnopekHere's the patch! It needs some work as described above.
Comment #4
shadcn CreditAttribution: shadcn at Chapter Three commentedLooks like the whole template needed a refresh. Some more work has gone into it. #2502089: Remove SafeMarkup::set() in template_preprocess_views_view_table()
I just updated it to work with the latest views from core.