lordfriend / nya-bootstrap-select

An AngularJS select replacement which build select like dropdown component with collection and ng-model support
http://nya.io/nya-bootstrap-select/
MIT License
178 stars 81 forks source link

How to provide search through all option and group name? #162

Closed pankovOleksandr closed 7 years ago

pankovOleksandr commented 7 years ago

Hi, is it a way to provide search not only by the items but also by group names? What can I try to implement this? I can do it by placing additional span with group name and visibility: none. But I don't think it's good decision.

geo

lordfriend commented 7 years ago

Due to the primitive design of the search. It is not very easy to implement without break the current function The search is actually transverse the dom tree of option menu. which make it a little inflexible for these kind of change. https://github.com/lordfriend/nya-bootstrap-select/blob/master/src/nya-bs-public.js#L284

So, it is not very different from placing a hidden element in option.