I have an array declared in vue.
sourceSelect: [
{ text: "Option 1", value: "1", title: "First tooltip" },
{ text: "Option 2", value: "2", title: "Second tooltip" },
{ text: "Option 3", value: "3", title: "Third tooltip" }
],
I have a select element in my markup:
<select class="form-group col-sm-8" v-on:change="showOptions" v-model="sourceSelected" data-toggle="tooltip" data-placement="top" data-html="true">
<option v-for="source in sourceSelect" v-bind:value="source.value" title={{source.title}} >{{source.text}}</option>
</select>
The drop-down shows the options, and shows a tooltip, but unfortunately not the title values setup in the array - rather it shows {{source.title}}. Is there any way of setting up the values for a title attribute dynamically in this way? I'm using vue.2.6.10