Currently, in my Vue project using vue2.6 and Vuetify 2.3, I have a v-select menu that displays a list of module names. However, I want to modify the way the items are displayed by combining two fields together with a hyphen.
At the moment, the item-text property is set to display only the module name retrieved from the database.
<v-select
:items="deplist"
item-text="moduleName"
item-value="moduleId"
v-model="selection"
></v-select>
I am looking to change the item-text property to concatenate two fields (moduleName,moduleNum) with a hyphen between them. How can this be achieved within the item-text property?
item-text="moduleName" + "-" + "moduleNum"
e.g. "Mathematics-108"