Values are passed dynamically to the carosuel then how to get the value of the button clicked and proceed with the flow?

Hi Team,

I have created a function to construct the data for the carosuel dynamically. In carosuel values are fetched from the variable and i am able to display the values. However the button value are not accessible. please suggest if there is any way to access button values to proceed with the flow.

Thanks in advance.