Fill modal infolist from array

Hi all.

I'm using a Table row action to display data from another record in a modal.

With forms, I can use an action's ->fillForm() method to populate the modal's ->form(). Is there a way to do the same for a modal's ->infolist()?
Solution
Answer: use a closure in ->infolist() and pass the custom data to the infolist using ->state()
Was this page helpful?