F
Filament6mo ago
wazkaz

Table widget heading change

Hello, i want to overwrite the table widget heading with a translatable string but I didn't find how i could. I tried to use like this:
protected static ?string $heading = __('Parts Surveyed Products');
protected static ?string $heading = __('Parts Surveyed Products');
but it not accepting if i start with double underscore. If i use the static string it is working. Anyone faced with this before?
1 Reply
Dennis Koch
Dennis Koch6mo ago
You can use function for PHP property definitions. That’s why we have a corresponding method for every property that you can override to set the value. I think it should be getHeading()
Want results from more Discord servers?
Add your server