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

Update readme.md #1637

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions doc/jquery_typeahead.md
Expand Up @@ -143,6 +143,14 @@ Datasets can be configured using the following options.
called with suggestions computed asynchronously (e.g. suggestions that come
for an AJAX request). `source` can also be a Bloodhound instance.
**Required**.

Example of use:

` source: function ( query, syncResults, asyncResults) {
$.get( '/api/autocomplete/places', { q: query }, function ( data ) {
return asyncResults( data );
} );
}`

* `async` – Lets the dataset know if async suggestions should be expected. If
not set, this information is inferred from the signature of `source` i.e.
Expand Down