vue.jsautocompletevuetify.js

It's possible to use an array of property on "item-text" in Vuetify?


 <v-autocomplete
   v-model="friends"
   :disabled="isUpdating"
   :items="people"
   label="Select"
   item-text="name" <!-- use here Array ['name', 'id', 'value'] -->
   item-value="name"
  >

It's possible to use an array of property on "text-item" in Vuetify?


Solution

  • You can try sometime like that :

    :item-text="item => `${item.name} - ${item.id} - ${item.value}`"