corejavascript / corejavascript/typeahead.js
I would like an example suggestion template that produces the same output as the default suggestion template
Open
- Dominant language
- JavaScript
- Stars
- 968
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Description
because it seems not really able to do it without a lot of hacks around if I am using bloodhound and firing various events.
to do it what I would like is something like the following
```
templates: {
suggestion: function(query ,suggest) {
return '
' + query + '' + suggest.substring(query.length) + '
';
}
}
```
but this does not seem to be possible. How would you implement a template that gave the same output as the default typeahead suggestion template?
Contributor guide
Assessment
This issue has not been assessed yet.