passing data to infolist action
hey friends ππ½,
i want to use filament to display repeatable data, like in some kind of accordion.
i use the infolist builder, passing my data via
state()
. now my data includes details that i want to show inside a modal. i want to trigger the modal from within the section body, not the header. my idea is as follows:
the setup works fine. i have multiple cards and i can open the modal. my problem is, that i'm not able to pass the data (here bar
) inside the modal. i have two ideas, either create a custom view bar-details.blade
or, even better, use another infolist builder inside the modal.
do you folks have any idea? or maybe even a completely different approach?1 Reply
another idea i had was to add another
state
to the Action
, but this is not implemented.
i found a solution! on my component i added
inside the schema of my section
and inside the blade file
now in my foo.blade
i have access to the data bar
of the respective foo
entry.
hope it can help someone else!