I was wondering how I could easily access the item-text value of a v-select when items have been bound to it and it is separate from the item-value value? I wish to save the item-value value to my v-model but then also pass the item-text value through an on change event like so:
<v-select v-model="id" :items="items" item-value="id" item-text="name" v-on:change="getItemText(name)" />
I can get the value if I put on a ref to the v-select and then access it via:
this.$refs.vselect.selectedItems[0].name;
but that seems a bit long winded when the data is in the v-select itself.If anyone knows an easier way of doing this I'd love to hear it!
Thanks!
Got it working using slots thanks to @Bennett Dams.