How to add button for each image in imageGridComponent to set image as leadimage

For my app i am able to display images in imageGridComponent now i want to set image as leadimage calling api endpoint how i can give button below each image to setleadimage ? or how i can achieve this with any way ??

Hi @vishal, welcome to the forum! :wave:

We could use a List View instead of the "Image Grid" component, this would allow us to add a button to the repeatable.

After changing margins and paddings for the components within, we can get it to look very similar to the "Image Grid" component but with the added buttons:

I'm not sure what you mean by "setLeadImage" but I believe is for your API. You can Add an "Event handler" to the button and run the query that makes a request to your API.