© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•8mo ago•
9 replies
EDZero

[Filament v4] Filtering TableSelect with Tabs

Hi all 👋

I’m using Filament v4 and I’d like to display tabs above a TableSelect field to filter the selectable records. The goal is to let users click a tab (e.g. event category) and have the TableSelect update its query accordingly.

Here is what I have done so far:
Step::make('Choose Template')
    ->schema([
        TableSelect::make('template_id')
            ->relationship('template', 'id')
            ->hiddenLabel()
            ->tableConfiguration(TemplatesTable::class)
    ]),
Step::make('Choose Template')
    ->schema([
        TableSelect::make('template_id')
            ->relationship('template', 'id')
            ->hiddenLabel()
            ->tableConfiguration(TemplatesTable::class)
    ]),


I’ve tried using ->aboveContent() to show the tabs, but I’m not sure how to connect the selected tab to the query inside the TableSelect's tableConfiguration.

Is there a correct way to:

1. Add tabs above a TableSelect, and
2. Use the selected tab value to filter the query (in getTableQuery() or similar)?

Any guidance or examples would be appreciated! Thanks 🙏
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

FIlament v4 Tabs alignment
FilamentFFilament / ❓┊help
5mo ago
TableSelect V4 odd behaviour
FilamentFFilament / ❓┊help
7mo ago
Filament v4
FilamentFFilament / ❓┊help
6mo ago
Filament v4
FilamentFFilament / ❓┊help
2y ago