Repeater: show delete button on each line conditionally
I am trying to let the user only delete repeater records with certain data conditions. Currently I only managed to stop the delete action but I think there must be a way where I can even conditionally show/hide the delete button based on the data within the record.
I tried to make a similar condition in function Repeater->deleteable(function (...)) but here I don't have access to the $arguments, so I cant say which element of the state I am currently processing.
Still the current solution I showed above is working for me but it feels wrong. I think there is a much easier way, I am just not seeing it yet probably.
2 Replies