question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to trigger the itemsShown event

See original GitHub issue

Hi, how would you implement a method of detecting when results appear after the user has been typing? I thought the ‘itemsShown’ event would have achieved this but it never seems to be fired.

This is my template code -

<ion-auto-complete 
		[dataProvider]="completerService" 
		(itemSelected)="selectUser($event)" 
		(ionAutoInput)="userTyping($event)"
		(itemsShown)="itemsShown($event)"
		[template]="withImages" 
		placeholder="Enter a name or email" #searchBar>
</ion-auto-complete>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
plindsaycommented, Aug 25, 2017

Yep, that works! Not sure how I ended up the getting the ‘beta’ version… npm must’ve given me this when I ran npm install ionic2-auto-complete --save - very odd!

1reaction
kadoshmscommented, Aug 25, 2017

Well this is very odd. Could you please try installing 1.5.2-release ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to trigger event in JavaScript? - Stack Overflow
To create the event you want to fire, you can use either createEvent or ... "detail": "Example of an event" }); // Dispatch/Trigger/Fire...
Read more >
JQuery Trigger Event on Show/Hide of Element - ViralPatel.net
It provides a way to trigger the event handlers bound to an element without any user interaction via the .trigger() method. The .on()...
Read more >
.trigger() | jQuery API Documentation
The .trigger() method can be used on jQuery collections that wrap plain JavaScript objects similar to a pub/sub mechanism; any event handlers bound...
Read more >
How to trigger some events based on creation of a new list item?
Remote Event Receivers seem to be a solution. While attaching RER you have to specify EventType - ItemAdded should be the one you...
Read more >
Trigger select event manully pass item and item value to event ...
I set the selected item using the first code block below. But I need to pass the item and items value to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found