How to display infolist in a table column action with a relation record.

I want to display an infolist when a user clicks a column. I can easily do that using ViewAction. However, instead of the record iteself, I want to set the $record->customer as the infolist model.
Is there something similar to fillForm for infolists?
TextColumn::make('name')
    ->action(function (HasTable $livewire, ?ExpiryReport $record) {
        return ViewAction::make('View Customer')
            ->record($record->customer)
            ->infolist([
                TextEntry::make('CRN')
                TextEntry::make('NAME')
                    ->label('Name'),
                TextEntry::make('ADRS')
                    ->label('Address'),
                TextEntry::make('parentCrn')
                    ->label('Parent'),
               TextEntry::make('info.code')
                   ->label('Code'),
            ])
            ->slideOver();
    })
Solution
maybe

TextColumn::make('name')
    ->action(
        ViewAction::make('view_customer')
            ->infolist([
                TextEntry::make('customer.CRN')
                ...
            ])
    )

?
Was this page helpful?