I am trying to bind an array of objects to a v-select so that when the user selects an option, I have access to multiple data points associated with that option. However, I only want it to show one value in the dropdown itself, which would be the name. If I use itemText to have it displayed correctly in the dropdown, it binds it to that name only and I do not have access to the rest of the info associated with it.
For example, here is my array of objects:
memberships = [{
memberExpirationDate: (...),
memberUsername: 'John Jones',
membershipId: 234
membershipProfileName: 'Sample Profile Name'
}]
And here is my v-select:
<v-select v-model="selectedMember"
:items="memberships"
item-text="membershipProfileName"
filled
required>
</v-select>
Then when I want to use selectedMember it is set to 'Sample Profile Name' instead of the entire membership object. How would I bind the value to the entire object?