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);
                })
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())),
Was this page helpful?