Conditionally displaying delete action in a Repeater based on row
Hello,
My model has a "active" field that should enable/disable the deletion of the element in the repeater.
I know that there's a
Is there a way to accomplish this?
My model has a "active" field that should enable/disable the deletion of the element in the repeater.
I know that there's a
->deleteAction(fn ($action) => ...) function, but I haven't been able to figure out how to inject the current row. I tried with $state but the whole repeater array is included instead.Is there a way to accomplish this?