vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

Sidebar nav items not showing up (text)

Open shah-newaz opened this issue 9 years ago • 5 comments

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>```

shah-newaz avatar Jan 27 '17 03:01 shah-newaz

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.

johnleider avatar Jan 27 '17 03:01 johnleider

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!

shah-newaz avatar Jan 27 '17 04:01 shah-newaz

Thank you @shah-newaz, happened to me too!

noetix avatar Feb 12 '17 10:02 noetix

 <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

tborja avatar Apr 04 '17 08:04 tborja

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. Please direct any non-bug questions to our Discord

lock[bot] avatar Apr 17 '19 05:04 lock[bot]