© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•16mo ago•
3 replies
Treebeard

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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Save toggled columns to user preferences
FilamentFFilament / ❓┊help
3y ago
Open the column visibility dropdown in the slideOver
FilamentFFilament / ❓┊help
2y ago
table column visibility base on record
FilamentFFilament / ❓┊help
3y ago
Save Table column order
FilamentFFilament / ❓┊help
16mo ago