Currently, I am new to Vue and exploring Vuetify while working on building a dropdown using "v-select".
If there is a simpler way to achieve this, it would be awesome! Otherwise, my plan is to create a new array, convert data for certain members into objects, copy them to the new array, and then set that array as :items in v-select.
Below is my code snippet:
<v-select
label="Select a permission to copy"
variant="underlined"
item-title="resource"
no-data-text="No permission to choose from"
:items="permissionsToCopy"
v-model="selectedPermissionToCopy"
return-object
>
</v-select>
For resource
in item-title
, I aim to display it like - if it is resource == company_user_licence
then I want the item-title
to show as Licence Permission: User
.
I have been searching for ways to customize the template for item-title, but so far I have only found methods for item-text and item-value, not item-title.
If you need further clarification or more details, please don't hesitate to ask. Thank you!