Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant