paper-card
paper-card copied to clipboard
Attach Event on image inside paper-card
Description
Is it possible to attach an event to the image inside paper-card? I looked at the source code but couldn't find a way.
I tried some hack ways, but without success:
this.$.card.shadowRoot.querySelector("iron-image").$.img.onclick=this.showDetails Polymer.Gestures.addListener(this.$.card.shadowRoot.querySelector("iron-image").$.img, 'tap', e => this.showDetails(e));
Expected outcome
Be able to attach events to the image.