Closed negezor closed 1 year ago
Added searchFilter
option to allow customised search algorithm in 2.6.0
.
Could you provide example? This doesn't seem to be documented well.
It seems that this is done in the filterOptions
function in useOptions
composable.
fo = fo.filter(filter)
Bummer, there's no current value of search input available, so you really have to implement everything yourself. I'll see if I can find some time for a PR. @adamberecz you think it's a good idea or isn't it an appreciated feature?
Can we implement a custom search filtering algorithm? I would like to use fuzzy search, however this is not the only possible filtering option.
As far as I understand, changes need to be made here. And apparently we could normalize
search.value
once. https://github.com/vueform/multiselect/blob/50ea5dcae01b75b484fbe8a915fa76d8a9479d41/src/composables/useOptions.js#L514-L520