I am looking at the tutorials on vues page for adding tooltips. https://vuetifyjs.com/en/components/tooltips
It seems to work fine for an individual button.
After debugging the Code snippet i found the solution by adding slot-scope="i"
to the tooltip
component like <v-tooltip slot-scope="i" right>
:
new Vue({
el: '#app',
data() {
return {
bars: ['home', 'event', 'info']
}
}
})
<script src="https://cdn.jsdelivr.net/npm/babel-polyfill/dist/polyfill.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vuetify@1.4.0/dist/vuetify.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/vuetify@1.4.0/dist/vuetify.min.css">
<div id="app" data-app>
<v-item-group >
<v-container grid-list-md>
<v-layout wrap>
<v-flex v-for="(n,i) in bars" :key="n" xs12 md4>
<v-item >
<v-tooltip slot-scope="i" right>
<v-btn slot="activator">
<v-icon>{{n}}</v-icon>
</v-btn>
<span>{{n}}</span>
</v-tooltip>
</v-item>
</v-flex>
</v-layout>
</v-container>
</v-item-group>
</div>