Table Filters Count is Always Zero
I have made custom filters to be used in my resources. The filter works but the filter counter is always zero.
Solution:Jump to solution
yes, when using
indicateUsing
both count and activity are working @Dennis Koch thanks13 Replies
Any Suggestions
Did you actually apply some of these filters?
Yes
It applies and return actual results
@kool @Dennis Koch Having same issue, any clue how to fix?
Haven't really looked into this. Does this happen only with custom Filters? Or only when the manual "apply" button is used?
at present I am only having custom filters and having same issue @Dennis Koch
Does the issue appear when you use a Standard filter?
Haven't checked it, I will confirm
@Dennis Koch when using stardard filters, count is working fine and also its showing in "Active Filters" but when using Custom Filters both are missing.
Can you try defining an Active Indicator? Not sure whether that's linked:
https://filamentphp.com/docs/3.x/tables/filters/custom#active-indicators
Solution
yes, when using
indicateUsing
both count and activity are working @Dennis Koch thanks@Dennis Koch can I have filters and title in same row
can I have filters and title in same rowNope. The layout is fixed, sorry. @kool See the message above. For custom filters you need to set
indicateUsing()
to make the badges work.@Dennis Koch Thank you Dennis, it works