ng2-ui / auto-complete

Angular Auto Complete component and directive
http://ng2-ui.github.io/auto-complete/
MIT License
279 stars 124 forks source link

How to enable matched text highlighted? #223

Closed uiravi closed 7 years ago

uiravi commented 7 years ago

Hi i have implemented this. but trying to enable matched text highlighted. if there any option. please suggest. Thanks :)

allenhwkim commented 7 years ago

there is no such a feature at this moment.

uiravi commented 7 years ago

Thanks 👍 if possible please implement.

smitthakkar96 commented 7 years ago

It's a good feature request @allenhwkim why don't we mark it as a feature request

allenhwkim commented 7 years ago

@smitthakkar96 it's a good feature. However, I am not sure of the size, complexity, and performance of code for this implementation as a basic feature.

This can be done using list-formatter already.

I am not sure that this module should provide this custom list-formatter.

We still can build an example how to highlight it on the list though.

beeing commented 7 years ago

Just a suggestion, this is a good match for autocomplete - https://github.com/farzher/fuzzysort and also have highlight feature

allenhwkim commented 7 years ago

You still can complete with list-formatter. This is an example. http://plnkr.co/edit/4ekcPC?p=preview.

From my point of view, this is a custom feature for each user, not for all users. Thus, it won't be implemented as a core feature. However still list-formatter is useful for this kind of features.