Open adrianogiannacco opened 1 week ago
Yes sure ! You can just use the search
prop. This prop is a function, and the return values will be the options given to those components.
Edit: I just understood you already took a look at the source code.
I think a way to allow this is by using the same condition used a few lines above in the computedAsync
property:
if (props.search && debouncedSearch) return options.value
Thank you very much for your answer. Not sure this will help me though, as I'm passing the options (fetched in the parent component) as props to UInputMenu
I'm not sure to understand your usage of InputMenu
then. Could you elaborate and provide an example ?
maybe command pallete is the component you are looking for? https://ui.nuxt.com/components/command-palette
Description
Hello, on our BE we have a geodata endpoint which already makes all the filtering and searches behind the curtain, with the query payload it receives. In our objects we don't have a specific field that is gonna contain the exact string that the component is passing, so, even if the options are populated correctly, the computed
filteredOptions
remains empty. My question is: Is there a way to not use the filteredOptions computed and just rely on the options array just as it is? Please let me know if I wasn't clear enough