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 badges1 Answer
Reset to default 7you 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条)