Bootstrap-3-Typeahead
Bootstrap-3-Typeahead copied to clipboard
Add some examples when working with async data
+1
+1
I got it to work like this, but yes, the documentation should be extended.
$('#input').typeahead({
source: function(query,process) {
$.getJSON('/info/suggestions?q='+query).done(function($data){
process($data);
});
},
});
+1 (I had to look in the issue list and search for "ajax", to see how it should be done)
+1