javascript - Vuetify Autocomplete, accept value outside list - Stack Overflow

I have a vuetify autoplete ponent that displays a list of names that the user selects from. I would lik

I have a vuetify autoplete ponent that displays a list of names that the user selects from. I would like a fallback case where if the user enters something not on the list that value is still accepted. Here is my code:

<v-autoplete
v-model="model.name"
:items="users"
placeholder="Enter your name"
no-data-text="Name not Found"
clearable
></v-autoplete>

Where the value of the autoplete is bound to a data variable and the items is an array ing from my server. The autoplete ponent is part of a larger form that accepts submissions of data

I have a vuetify autoplete ponent that displays a list of names that the user selects from. I would like a fallback case where if the user enters something not on the list that value is still accepted. Here is my code:

<v-autoplete
v-model="model.name"
:items="users"
placeholder="Enter your name"
no-data-text="Name not Found"
clearable
></v-autoplete>

Where the value of the autoplete is bound to a data variable and the items is an array ing from my server. The autoplete ponent is part of a larger form that accepts submissions of data

Share Improve this question asked Aug 4, 2020 at 9:29 michealmicheal 1771 gold badge3 silver badges11 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

you can try using v-bobox instead of v-autoplete. v-bobox accept values entered by user that do not exist within provided items.

src: https://vuetifyjs./en/ponents/bobox/

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744992206a4604971.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信