Dynamic actions with modal
Hi, how can I create dynamically Actions in a custom page, where each of the actions opens a modal?
When I did some testing, it worked if I just created a method like
ANd rendered it using
However when creating them dynamically (based on an array of records for example that can change), it stops working. The action is rendered, but modals don't open anymore.
I guess it has something to do with the internals of the
When I did some testing, it worked if I just created a method like
testAction() { // return action }ANd rendered it using
{{ $this->testAction }}.However when creating them dynamically (based on an array of records for example that can change), it stops working. The action is rendered, but modals don't open anymore.
I guess it has something to do with the internals of the
InteractsWithActions trait and how the mounted actions / modals are stored, but is there any way to enable this in current filament version?