Question

Chosen matches words from beginning by default and if we add the following option, it would match the words even from middle:

{search_contains: true}

But I would like to implement fuzzy matching using chosen in a similar manner which Sublime Text does. How can this be achieved?

Était-ce utile?

La solution

According to: https://github.com/harvesthq/chosen/issues/858 this feature still does not found the way into choosen's core. Try the fork including this feature: https://github.com/eliasdorneles/chosen - of course I did not test it and relay on their talk.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top