Save column visibility in user preferences
Column visibility works great, but is lost between sessions.
It would be awesome if there were some kind of callback or event that is triggered when a column's visibility changes. That way I could save the users table preferences and reload the next time they login.
Is this possible?
Solution:Jump to solution
If anyone else searches for this, apparently this is doable by creating a custom trait.
Adding methods to the trait to override Filaments "getDefaultTableColumnToggleState()" to get the toggled columns state and "updatedToggledTableColumns()" to update the state.
Added some code to both of those to read/write from a custom table...
1 Reply
Solution
If anyone else searches for this, apparently this is doable by creating a custom trait.
Adding methods to the trait to override Filaments "getDefaultTableColumnToggleState()" to get the toggled columns state and "updatedToggledTableColumns()" to update the state.
Added some code to both of those to read/write from a custom table