paper-card icon indicating copy to clipboard operation
paper-card copied to clipboard

Attach Event on image inside paper-card

Open toshovski opened this issue 7 years ago • 0 comments

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.

toshovski avatar Oct 06 '17 23:10 toshovski