I have a table generated with Vue.js over items.
I bound item.id with html's id and for attributes to display a tooltip with MDL but this one is not showing.
What am I doing wrong ?
<div id="items">
<table class="mdl-data-table mdl-js-data-table mdl-shadow--2dp">
<thead>
<tr>
<th>
Status
</th>
<th>
Name
</th>
</tr>
</thead>
<tbody>
<tr v-for="item in items">
<td>
<i v-if="item.isActive" class="material-icons" style="color:#4CAF50">power_settings_new</i>
<i v-else class="material-icons" style="color:#F44336">power_settings_new</i>
</td>
<!-- HERE -->
<td v-bind:id="item.id">
{{ item.shortName }}
<!-- v-bind working but tooltip is not showing. -->
<div class="mdl-tooltip mdl-tooltip--large" v-bind:for="item.id">
{{ item.name }}
</div>
</td>
</tr>
</tbody>
</table>
</div>
I also tried to bind on div rather than td, sadly it's not working too.
<div v-bind:id="item.id">
{{ item.shortName }}
</div>
<div class="mdl-tooltip mdl-tooltip--large" v-bind:for="item.id">
{{ item.name }}
</div>