gunnery
1
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?
bpj
2
I don’t think you need the double braces
patrick
4
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)"
gunnery
5
worked perfectly…thanks @patrick