filter header title
Any idea on how to edit the filter header title 'Filters' specific to the resource.
6 Replies
Publish the translations and adjust accordingly, or PR the translations for the desired language.
That would work, but that would mean same heading for all resources, no?
sorry, misunderstood the question. I don't think there's a method for that. looking at the code it's just using the translation string.
yeah no problem. Thanks anyway
You'd need to swap out the whole component. But that might cause issues in the future, if we need to update that file, because you are then on an old version:
It uses this blade file.
vendor/filament/tables/resources/views/components/filters/index.blade.php
You could access the current model via $this->getModel()
and change stuff depending on that.I will stick with the generic header as it's not worth the potential issues. Thanks