I have a RG that displays images. I have a custom state that turns the border of each image red when it’s custom state is “isSelected” (when it’s clicked). I want a DELETE button to only show when one or more of the images “isSelected” but there is no conditional that gives me access to the custom state of the image. This seems so simple but I’ve been trying for hours and I’m getting nowhere, can any one help?
Here’s a screenshot of the RG gallery and the button. The RG is a group by itself and the text (photos) and the delete button are in a group (row). In summary, I want the button to be visible when at least one image “isSelected.” If no images are selected I’d like the button to disappear.