Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach Event on image inside paper-card #110

Open
toshovski opened this issue Oct 6, 2017 · 0 comments
Open

Attach Event on image inside paper-card #110

toshovski opened this issue Oct 6, 2017 · 0 comments

Comments

@toshovski
Copy link

toshovski commented Oct 6, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant