Open Rageshcnc opened 5 years ago
var bestquestions = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'), queryTokenizer: Bloodhound.tokenizers.whitespace, prefetch: './dist/js/questions.json', remote: { url: './dist/js/questions.json', wildcard: '%QUERY' } });
$('#custom-templates .typeahead').typeahead({ minLength: 3, hint: true, highlight: true }, { limit: 10, name: 'questions', display: 'value', source: bestquestions,
});
This configuration is displaying the filtered data with unmatched data.
var bestquestions = new Bloodhound({ datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'), queryTokenizer: Bloodhound.tokenizers.whitespace, prefetch: './dist/js/questions.json', remote: { url: './dist/js/questions.json', wildcard: '%QUERY' } });
$('#custom-templates .typeahead').typeahead({ minLength: 3, hint: true, highlight: true
}, {
limit: 10, name: 'questions', display: 'value', source: bestquestions,
});
This configuration is displaying the filtered data with unmatched data.