Combobox: Disable component filtering for server-driven filtering. #5874
-
SummaryI'm attempting to implement a server-driven combobox that uses the text portion of the component to query a long search field on an API endpoint that returns a list of objects. In this instance, I'm attempting to search for a "customer". There are many fields we may want to search against to find the given customer, like "name", "account", "circuit ID", etc. If I create a single display field with all of those, the will get quite long. If I implement this today, my API returns the expected results, but the component then does a text filter on the display field, which further limits the results to only the ones that match the display string. ExamplesPerhaps something like this could work: In combobox/option-items.directive, add:
...
... if (this._filterDisabled) { This then would be the implementation change in the template. ConclusionI don't believe this would be too difficult to implement (I've forked the repo already and implemented the "noFilter" version of this), but it does change the API and I'm not sure whether this will cause other issues or not. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
@Jinnie @hippee-lee @gnomeontherun What's your temperature on this feature request? |
Beta Was this translation helpful? Give feedback.
@Jinnie @hippee-lee @gnomeontherun
What's your temperature on this feature request?