corejavascript / corejavascript/typeahead.js

I would like an example suggestion template that produces the same output as the default suggestion template

Open
#152 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.