F
Filament9mo ago
SLy

View title of a modal infolist

The offers are inside a relation manager having Customer as parent, when I click view on the offer I need to change the title of the modal that is opened for the infolist defined inside the Offers relation manager? I want to modify the default "View offer" label that is set by default when I open the infolist modal, I could not find any method in docs to do that.
Solution:
Can't you just use modalHeading like ->modalHeading(__('abc'))
Jump to solution
5 Replies
SLy
SLy9mo ago
Nobody knows this? Seems quite a common situation.
Solution
Vp
Vp9mo ago
Can't you just use modalHeading like ->modalHeading(__('abc'))
SLy
SLy9mo ago
Where would I use that inside the infolist? There is no Filament\Infolists\Infolist::modalHeading method.
Vp
Vp9mo ago
In view action inside relation manager
SLy
SLy9mo ago
Yes, I was looking in wrong place, no sure how I missed that, was an easy one. Thank you!