Is there an easy way to allow for dynamic selection of columns in a table? I want users to be able to show/hide the columns important to them.
This is an example of what I’m looking to achieve. I’m sure I could build all of this using dynamic attributes to hide/show based on columns selected, but hoping there’s a better solution.
Theoretically (I have not tried it), create a variable for each column (0=hide; 1=show). Have the (change of) value of of the checkbox set the value of the variable. As an alternative, you could use Cookies or Data Store to store the values of the variables.
DataTables is a very good option. I am sure there has been a Feature Request for it, or at least for some of the very clever functionality that it comes with.
I love the way columns hide in a particular sequence as the viewport shrinks (not just at set widths).
I have not used DataTables for a long time but I need to implement some of these features now and would be interested in seeing how others have implemented such things.