-
Hi
and then when I generate the list it returns an array of objects. Here is an example object
So in each object the actual name is inside the model object. But when I try to get the dropdown it shows
How do I setup the label key correct so the dropdown list only shows the model object and when I select the user it only adds the model object? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You can use the prop getOptionLabel <v-select
v-model="user"
@search="asyncGenerateUserList"
:options="users"
:getOptionLabel="user => user.model.name"
>
</v-select> |
Beta Was this translation helpful? Give feedback.
-
Thank you so much!! |
Beta Was this translation helpful? Give feedback.
-
In my case, i had a
|
Beta Was this translation helpful? Give feedback.
You can use the prop getOptionLabel