orizens / ngx-typeahead

A simple but yet powerful typeahead component for Angular (css framework agnostic)
https://www.npmjs.com/package/ngx-typeahead
MIT License
61 stars 29 forks source link

Customizing results list #7

Closed phildaniels closed 6 years ago

phildaniels commented 7 years ago

Hello. I was wondering if it is possible to override the default functionality of the results list. Specifically, I would like to bold the substring in the list item that matched the query. Is this possible with the package?

orizens commented 7 years ago

hi @pdaniel3 you can use a custom template with ref [taItemTpl] - look at the source for an example. another way is to use css and style the ".active" element