© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
7 replies
Booltje124

How to load different table columns based on screen size?

Hi all,

I'm trying to create a table where the number or type of columns adjusts automatically based on the screen size. Is there a way to detect the screen size when the Livewire component loads, and then conditionally call either function1() or function2() inside the ->columns() definition of the table?

In short: I want to load different sets of columns (normal or stacked) depending on whether the user is on a small or large screen. What would be the best approach to achieve this? I am not using panels.

Thanks in advance!
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

Show/Hide Table Columns based on getTabs()
FilamentFFilament / ❓┊help
3y ago
Reorder form components based on screen size.
FilamentFFilament / ❓┊help
2y ago
Load different data based on the role
FilamentFFilament / ❓┊help
3y ago
How to load different ListPage based on permission on multi-tenant resource?
FilamentFFilament / ❓┊help
12mo ago