F
Filament17mo ago
rajul

How to get active filters on table inside list resource page widget.

I am trying to get list of active filters applied on table inside a widget. My current approach is
$this->getTablePageInstance()->getTable()->getFilters()
$this->getTablePageInstance()->getTable()->getFilters()
but this is returning all filters available. How to get only active filters?
2 Replies
DrByte
DrByte17mo ago
First, I apologize I don't have a concrete answer, but as I was reading your question I recalled reading about "indicators" earlier today while I was working on adding filters. Does getIndicators() do what you're looking for? Related: https://filamentphp.com/docs/3.x/tables/filters#multiple-active-indicators
Fogzy
Fogzy16mo ago
I have the same problem, there seems to be no way of doing it on the $table object. I wanted to activate pagination when no filters are selected.

Did you find this page helpful?