Closed gabrielle-perez-movile closed 7 years ago
I've found the problem...
The correct code is below:
<paper-icon-button
icon="icons:content-copy"
data-name$="[[upperCaseFilter(item.name)]]"
data-price$="[[item.price.value]]"
on-tap="_copy">
</paper-icon-button>
I didn't know the need of using $=
in this scenario too...
I am trying to call a function in
on-tap
parameter and I need to pass an object to this function (since this button is on a template repeat) but when I try to add adata-arg
in the paper-icon-button element to get throughe.currentTarget.getAttribute
I am not able to get it because the parameters were removed.Generated html: