Add tablefilter to querystring programatically
I haven't found a solution in the discussions or discord yet.
My goal is to have some buttons above the table which should prefill the table filters. And update also the querystring.
I don't want to use the querystring direclty (href to some url with the querystring). I would like to use some methods from the HasFilters trait. But I couldn't find a proper one. I only found removeTableFilter but am searching for like addTableFilter.
Is there another way of prefilling the table filters to build multiple "sets" for some quick buttons above the table?
My goal is to have some buttons above the table which should prefill the table filters. And update also the querystring.
I don't want to use the querystring direclty (href to some url with the querystring). I would like to use some methods from the HasFilters trait. But I couldn't find a proper one. I only found removeTableFilter but am searching for like addTableFilter.
Is there another way of prefilling the table filters to build multiple "sets" for some quick buttons above the table?
Solution
If you're on Filament v3 you can look at Tabs. https://filamentphp.com/docs/3.x/panels/resources/listing-records#using-tabs-to-filter-the-records