How to copy a dynamic value using 'Browser'

I have a dynamic value that I would like to copy on a click of a button. The code I have tried is:

dmx-on:click="browser1.copy({{products[0].ssc}})"

How ever this does not work, does anyone have any idea if this is possible and if so how to do it?

I don’t think you need the double braces

nope did not work.

The copy method doesn’t accept any arguments, it just executes the browsers native copy action. You probably want to use the writeTextToClipboard.

dmx-on:click="browser1.writeTextToClipboard(products[0].ssc)"

worked perfectly…thanks @patrick