Closed failpark closed 2 years ago
Could you describe your use case in more detail? Are you proposing a function as a new prop that receives each option object and returns a boolean whether to include it in the filtered list?
I made a PR with an Example. Hope that explains it :sweat_smile:
You could now search for JavaScript in the first MultiSelect and you would now see all JavaScript frameworks (Svelte, React, Vue, etc.)
svelte-select has the same thing https://github.com/rob-balfre/svelte-select#exposed-methods but there its called itemFilter
In my case, I need to filter, in addition to label, for some other field in Options.