- Issue created by @skyriter
- πΊπΈUnited States swirt Florida
This is a nice suggestion. It is a bit challenging as the sort fields actually have to alter the query that get run. (Views makes this look easy, but these are not Views.) Each report's logic and columns are so different, it is not clear to me at the moment if this could be pulled off.
Perhaps we don't have it alter at the query level and we just massage the results? If we can pull it off it would be a really nice addition.
Or maybe a javascript solution that doesn't really care what the data is, and just alters the DOM (wouldn't require ajax or a new page load)? - πΊπΈUnited States swirt Florida
Maybe use this or something like it
https://github.com/tofsjonas/sortable - πΊπΈUnited States swirt Florida
I'm liking the idea of listjs. I don't think we need to use https://www.drupal.org/project/listjs β but I think we could just include it in this module.
- πΊπΈUnited States swirt Florida
Unfortunately listjs is out because it uses buttons instead of table headers and seems to require custom js per report
I liked the search filter but it is just not able to do it.
- Status changed to Fixed
about 1 year ago 3:42am 13 October 2023 - πΊπΈUnited States swirt Florida
I decided to use https://github.com/tofsjonas/sortable which just alters it with JS. It was easy to implement and quite robust. It has some limitations
- It is not styled nor structured where it could be styled like the Views sortable headers
- It is not as accessible as it should be.
It has been applied to the three reports that use tables (node count, vocabulary count and enabled modules). Any new reports using tables will pick it up too.
- Status changed to Fixed
about 1 year ago 3:04am 18 October 2023 - πΊπΈUnited States swirt Florida
Also brings sticky header.
This went out with release 1.0.20 β