© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Proculair B.V.

Access tableFilters in resource

Hi,

On a tableWidget you can access
tableFilters
tableFilters
like so:
->visible(fn () => ZaakState::ACTIVE->value === $this->tableFilters['state']['value'])
->visible(fn () => ZaakState::ACTIVE->value === $this->tableFilters['state']['value'])


Can you also access these in a a
Resource
Resource
?
Solution
Found the solution:

 ->visible(function (HasTable $livewire) {
    return ZaakState::ACTIVE->value === $livewire->getTableFilterState('state')['value'];
}),
 ->visible(function (HasTable $livewire) {
    return ZaakState::ACTIVE->value === $livewire->getTableFilterState('state')['value'];
}),
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

Opening Resource Url with TableFilters
FilamentFFilament / ❓┊help
2y ago
Access $record in resource
FilamentFFilament / ❓┊help
2y ago
Multiple tableFilters in a Widget
FilamentFFilament / ❓┊help
3y ago
How to redirect to Another resource module with tableFilters parameter .
FilamentFFilament / ❓┊help
3y ago