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

General callback for when typeahead is fully initialized and ready #64

Closed
seiz opened this issue Feb 28, 2013 · 2 comments
Closed

General callback for when typeahead is fully initialized and ready #64

seiz opened this issue Feb 28, 2013 · 2 comments
Milestone

Comments

@seiz
Copy link

seiz commented Feb 28, 2013

I'd appreciate a general callback so i can find out when typeahead is initialized and done prefetching etc.

For example:

$("input").typeahead({
  name: 'description', 
  prefetch: 'search.json',
  limit: 1000,
  callback: function(){
    alert("Typeahead is ready for you!");
  }
});
@ghost ghost assigned jharding Mar 1, 2013
@jharding
Copy link
Contributor

jharding commented Mar 1, 2013

In v0.9, a custom event will be triggered on the typeahead input when the prefetched data has been loaded.

@hiiwave
Copy link

hiiwave commented Mar 8, 2018

Excuse me, could I ask what's the event name? I could not find it on the document.

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

No branches or pull requests

3 participants