15

Here is the example of v-autocomplete Here

How can i assign the object of the each item to model of the autocomplete?

0

1 Answer 1

51

You have to use return-object props of v-autocomplete

Like that :

<v-autocomplete
  v-model="friends"
  :disabled="isUpdating"
  :items="people"
  box
  chips
  color="blue-grey lighten-2"
  label="Select"
  item-text="name"
  return-object
  multiple>

CodePen

Vuetify Doc about v-autocomplete

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.