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:
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...
Jump to solution
1 Reply
Solution
Treebeard
Treebeard4w ago
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
Want results from more Discord servers?
Add your server