We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
e.g. User can type any text in a company input, and he can choose a existed company name from a company list.
So the company list need to be filtered when user inputed some text:
For now, I need to do something like this:
code snippet in template:
<n-form-item label="Company" path="company"> <n-auto-complete v-model:value="data.company" :options="companyAutoCompleteOptions" placeholder="Company name" :get-show="() => true" /> </n-form-item>
code snippet in script:
const companyAutoCompleteOptions = computed(() => { const companies = [ 'TestA', 'TestB', 'TestC', 'TestD', 'TestE', 'CompanyC' ] return companies.filter(c => c.includes(data.value.company)).map((suffix) => { return { label: suffix, value: suffix } }) })
Maybe we can add a filterable prop make it more easy to use.
Add a filterable prop to AutoComplete, just like filterable in Select.
No response
AutoComplete component in other UI library:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Clear and concise description of the problem
e.g. User can type any text in a company input, and he can choose a existed company name from a company list.
So the company list need to be filtered when user inputed some text:
For now, I need to do something like this:
code snippet in template:
code snippet in script:
Maybe we can add a filterable prop make it more easy to use.
Suggested solution
Add a filterable prop to AutoComplete, just like filterable in Select.
Alternative
No response
Additional context
AutoComplete component in other UI library:
Validations
The text was updated successfully, but these errors were encountered: