Closed (works as designed)
Project:
Responsive Tables Filter
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2022 at 11:35 UTC
Updated:
10 Oct 2022 at 21:33 UTC
Jump to comment: Most recent
Comments
Comment #2
mark_fullmerThanks for asking about this. Something like that might be possible with the "Column Toggle" style provided by Tablesaw (see https://filamentgroup.github.io/tablesaw/demo/toggle.html).
Since you are referencing this affecting a Drupal View, however, and since different Drupal Views would have differing numbers of columns, there would probably need to be some way to add the
data-tablesaw-priorityattribute arbitrarily to Views column headers. A summary of this can be found at https://github.com/filamentgroup/tablesaw#column-toggle-mode:Drupal core doesn't expose a UI to add arbitrary data attributes to table rows as far as I know, and a quick search of contributed modules doesn't turn anything up. So I think in order to achieve this on a per-View basis, you would need to use Views preprocessing as described in https://chrisburge.net/blog/add-attributes-table-markup-views
I'll leave this issue open for a bit to see if you concur with this analysis, and then plan to mark is as "Closed: Works as Designed."
Comment #3
mark_fullmerMarking as "Closed (works as designed)" per comment above.