質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top