Sidebar nav items not showing up (text)
I've installed vuetify fresh using the official docs (webpack-ssr). Just edited the default App.vue like this (also copied from docs)
Sidebar nav item texts are not showing up.
Looks like the title attribute on v-list items not working ?
<v-app top-navbar footer left-fixed-sidebar>
<v-navbar></v-navbar>
<main>
<v-sidebar v-bind:items="items" id="sidebarMain" left fixed ripple></v-sidebar>
<v-content>
<v-container fluid>
<transition mode="out-in">
<router-view></router-view>
</transition>
</v-container>
</v-content>
</main>
<v-footer></v-footer>
</v-app>
</template>
<script>
export default {
data () {
return {
items: [
{ header: 'Header' },
{
title: 'Parent',
group: '/company',
items: [
{ title: 'Home', href: '/company/home', action: 'link' },
{ title: 'About', href: '/company/about', action: 'link' },
{ title: 'Contact', href: '/company/contact', action: 'link' }
]
},
{ title: 'Link', href: "#!" },
{ title: 'Link', href: "#!" },
{ header: 'Another Header' },
{ title: 'Link', href: "#!" }
]
}
},
mounted () {
this.$vuetify.init()
}
}
</script>```
Please follow the guidelines on how to report an issue. In particular, provide an example on www.jsfiddle.net (or a similar service) that reproduces the problem. If necessary, create a repository for us to clone with a minimal reproduction. repositories of actual projects will generally not be accepted .
Thank you.
Thank you John! I'll try and follow the guideline next time.
This issue was fixed (thanks to you 👍 )
Looks like Vue CLI script served me older version. npm upgrade vuetify solved it for me!
Thank you @shah-newaz, happened to me too!
<v-sidebar fixed class="white--text" v-model="sidebar">
<div class="px-3">
<h3 class="white--text mt-3">Sidebar</h3>
<p>This is just an example sidebar.</p>
</div>
<v-list>
<v-list-tile v-for="(item, i) in items" :href="item.href" :router="item.router" avatar key="i">
<v-list-tile-avatar>
<v-icon></v-icon>
</v-list-tile-avatar>
<v-list-tile-content>
<v-list-tile-title v-text="item.title" />
</v-list-tile-content>
</v-list-tile>
</v-list>
</v-sidebar>
v-list-tile-title is missing from the sample code in App.vue