-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Description
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.
multiselect/src/composables/useOptions.js
Lines 514 to 520 in 50ea5dc
if (search.value && filterResults.value) { | |
fo = fo.filter((option) => { | |
return searchStart.value | |
? normalize(option[trackBy.value], strict.value).startsWith(normalize(search.value, strict.value)) | |
: normalize(option[trackBy.value], strict.value).indexOf(normalize(search.value, strict.value)) !== -1 | |
}) | |
} |
Metadata
Metadata
Assignees
Labels
No labels