truckingsim / Ajax-Bootstrap-Select

This uses the bootstrap-select plugin and extends it so that you can use a remote source to search.
MIT License
280 stars 97 forks source link

Match entire word when using livesearch #138

Closed danielvoicu closed 4 years ago

danielvoicu commented 6 years ago

Hi,

I'm using bootstrap-select with livesearch, along with ajax-bootstrap-select, and I was wondering if there's a way to match the exact word. I've noticed that at this point there's "startsWith" and "contains" from bootstrap-select, but both of them tend to show the entire list of options. What should I do to fix this?

Thanks!

markhalliwell commented 4 years ago

So, this plugin essentially overrides/extends the liveSearch option from bootstrap-select. It doesn't actually care about what the liveSearchStyle option is set to though, it just uses makes a request to whatever backend server you want to do the actual matching (which you can match however you like).