© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
20 replies
lodeki

Get table data from header action.

I have a custom table header action .How can I access the table data from the action() method of the table header action? Tried to access it from the $livewire property like so
action(function (Component $livewire) {
                    dd($livewire);
                })
action(function (Component $livewire) {
                    dd($livewire);
                })
but can't really get it .
Solution
this will get all from the fitlered table:

Action::make('test')
                    ->action(fn($data, $livewire) => dd($livewire->getFilteredTableQuery()->get())),
Action::make('test')
                    ->action(fn($data, $livewire) => dd($livewire->getFilteredTableQuery()->get())),
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

How to get $data from table form action?
FilamentFFilament / ❓┊help
2y ago
How to get selected record from table in header action?
FilamentFFilament / ❓┊help
3y ago
How to get all options from table filter in table header action?
FilamentFFilament / ❓┊help
17mo ago
get form data from action
FilamentFFilament / ❓┊help
3y ago