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.
5 Replies
Nobody knows this? Seems quite a common situation.
Solution
Can't you just use modalHeading like
->modalHeading(__('abc'))
Where would I use that inside the infolist? There is no Filament\Infolists\Infolist::modalHeading method.
In view action inside relation manager
Yes, I was looking in wrong place, no sure how I missed that, was an easy one. Thank you!