© 2026 Hedgehog Software, LLC

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

How to access filter data from a widget?

I have a widget defined in
GetHeaderWidgets
GetHeaderWidgets
on the List page of my resource

I have a date filter defined in my
table
table
function

I want to pass the current filter data (startDate and endDate) to the widget
Solution
Inside that widget class you have to use InteractsWithPageTable:
use Filament\Widgets\Concerns\InteractsWithPageTable;

class WidgetName extends StatsOverviewWidget
use InteractsWithPageTable;
...
use Filament\Widgets\Concerns\InteractsWithPageTable;

class WidgetName extends StatsOverviewWidget
use InteractsWithPageTable;
...


and then you can get the filters with
$this->tableFilters
$this->tableFilters


Edit: I'm using Filament v4, so not sure if it's the same as in v3
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

Filter widget
FilamentFFilament / ❓┊help
2y ago
filter widget
FilamentFFilament / ❓┊help
2y ago
How to Access Data Table in Filament RelationManager to Create a Widget?
FilamentFFilament / ❓┊help
2y ago
How to access filter values from the table
FilamentFFilament / ❓┊help
2y ago