F
Filament4mo ago
Mikail

filter header title

Any idea on how to edit the filter header title 'Filters' specific to the resource.
No description
6 Replies
awcodes
awcodes4mo ago
Publish the translations and adjust accordingly, or PR the translations for the desired language.
Mikail
MikailOP4mo ago
That would work, but that would mean same heading for all resources, no?
awcodes
awcodes4mo ago
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.
Mikail
MikailOP3mo ago
yeah no problem. Thanks anyway
Dennis Koch
Dennis Koch3mo ago
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.
Mikail
MikailOP3mo ago
I will stick with the generic header as it's not worth the potential issues. Thanks

Did you find this page helpful?