Is your feature request related to a problem? Please describe.
Currently, we're restricted to having the autocomplete only be filtered down using the displayed textValue, this is fine for simple autocompletes, but if I have a richer autocomplete item with multiple values shown in the dropdown that should be searchable, I have to either put them all into a single joined string for the display text (not good UI) or only have it be searchable on one value.
For example, say i have a list of orderable items that have a name and code and a list of tests that can be ordered.
I'd propose adding a new optional property called filterValue on AutoCompleteItem -- if it is not provided, then you use the textValue like you do today, but if filterValue is provided, then use that value to filter on instead while having a distinct textValue for display on selection.
Is your feature request related to a problem? Please describe.
Currently, we're restricted to having the autocomplete only be filtered down using the displayed
textValue
, this is fine for simple autocompletes, but if I have a richer autocomplete item with multiple values shown in the dropdown that should be searchable, I have to either put them all into a single joined string for the display text (not good UI) or only have it be searchable on one value.For example, say i have a list of orderable items that have a name and code and a list of tests that can be ordered.
Describe the solution you'd like
I'd propose adding a new optional property called
filterValue
onAutoCompleteItem
-- if it is not provided, then you use thetextValue
like you do today, but iffilterValue
is provided, then use that value to filter on instead while having a distincttextValue
for display on selection.Describe alternatives you've considered
My only options right now are
textValue
which looks like craptextvalue
and deal with the limitation that i can only filter on thatScreenshots or Videos
No response