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

5👍

You can try sometime like that :

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

0👍

As the documentation mention, yes, you can use an array too.

https://vuetifyjs.com/en/api/v-autocomplete/#props

👤sma

0👍

use slots like this:

<v-autocomplete
   v-model="friends"
   :disabled="isUpdating"
   :items="people"
   label="Select"
   item-value="name"
  >
 <template v-slot:item="{ item }">
   {{item.name}}-{{item.id}}-{{item.value}}
 </template>
</v-autocomplete>

Leave a comment