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
{{ message }}
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
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:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: