Is it possible to apply a filter from an action?

I need to create a shortcut filter. I came up with the idea of defining an Action in headerActions. So I am wondering, if there is any possibility to apply filter from an action or possibly modify the eloquent query.

 ->headerActions([
        Action::make('Show Client Translations')
            ->button()
            ->action(function () {
                // Apply filter
                // OR modify table eloquent query
            }),
])
Was this page helpful?