Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<v-navbar-items> doesn't load the array from data #8

Closed
mfferreira opened this issue Dec 19, 2016 · 3 comments
Closed

<v-navbar-items> doesn't load the array from data #8

mfferreira opened this issue Dec 19, 2016 · 3 comments

Comments

@mfferreira
Copy link
Contributor

mfferreira commented Dec 19, 2016

I hope I'm not missing anything obvious, but the items are not binding for me.

Here's my App.vue:

<template>
    <v-app top-navbar footer left-fixed-sidebar>

      <header>
        <v-navbar>
          <v-navbar-logo>Vuetify</v-navbar-logo>
          <v-navbar-items v-bind:items="items"></v-navbar-items>
        </v-navbar>
      </header>

      <main>
        <v-sidebar id="sidebar" fixed left></v-sidebar>
        <v-content>
          <v-container fluid>
            <router-view></router-view>
          </v-container>
        </v-content>
      </main>

      <v-footer></v-footer>

    </v-app>
  </template>

  <script>
    export default {

      data () {
        return {
          items: [
            { text: 'Link', href: '#!' }
          ]
        }
      },

      mounted () {
        this.$vuetify.init()
      }
    }
  </script>

screen shot 2016-12-19 at 12 29 51 am

UPDATE: UI wasn't hot reloading automatically. After hitting the refresh the navbar items showed up.

@Pwntus
Copy link
Contributor

Pwntus commented Dec 20, 2016

I thought I had the same problem but for me it was the color of the text that was set to the same color as the background of the sidenav. Why is this and how do I change the text color?

vuetify

@mfferreira
Copy link
Contributor Author

@Pwntus I faced the same color issue. It really doesn't make sense and should be changed in the base color scheme.

Anyways, just set the color variables to the color you want in /stylus/main.styl

KaelWD pushed a commit that referenced this issue Oct 28, 2018
added faq and sponsors page and fix why-vuetify header
@lock
Copy link

lock bot commented Apr 17, 2019

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 lock bot locked as resolved and limited conversation to collaborators Apr 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants