You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: