Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

How to programmatically trigger doubletap event?

$
0
0

Thanks so much! It worked like a charm.

The docs are a little confusing, so I'll post my code here to help someone with the same problem:

ionic.trigger('doubletap', { target: this.element.find('ion-item').get(0) });

Because I'm using jquery in my specs, I had to use get(0) to retrieve the DOM element itself, as passing the jQuery object directly didn't work for me.

Thanks again for the help.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>