ViewField in repeater with record data in livewire component
I have a repeater where I have overwritten the add action with a modal. I want to use the Simple layout of the repeater and use a custom viewField with the data of the records. Does anyone know how to pass the data into the viewField? I only want to nicely show the information in the repeater, no logic is applied to the field so I dont think I need a custom field class
Best case I think would be to pass the record to the viewData() property but I cant figure out how to acces the current record of the repeater
Best case I think would be to pass the record to the viewData() property but I cant figure out how to acces the current record of the repeater