Setting a clicked custom dataviewers button to a certain text and the rest of the data viewer buttons to another text

I have this app with a custom data viewer, there is a button in the custom dataviewer. The data will display some songs.
here’s a picture of the custom dataviewer (it looks a bit wanky on the phone try the webviewer for a better image)

image

basically i only want one button in the data viewer to have the text “pause”

and have the rest of the buttons in the dataviewer have the text “play”.

I tried something like this:
Screenshot 2021-02-24 182559

but had no success.

Any advice?