No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    q-side-link is not clickable

    Help
    2
    4
    1048
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bruno.ronchetti last edited by

      Hi, I am a beginner with vue and quasar and I am working through the documentation and building a mock app.

      I am trying to use q-side-link to route to different pages, but the menu item becomes non clickable. I have the same problem with this fiddle https://jsfiddle.net/ypL7nLrh/30/, so I am really at a loss.

      Suggestions anyone? Thanks.

      <q-layout-drawer
                v-model="drawerState"
                :content-class="$q.theme === 'mat' ? 'bg-grey-3' : null"
              >
                <q-list no-border link inset-delimiter dense>
                  <q-list-header>Menu</q-list-header>
           
                  <q-side-link item to="/foo" exact>
                      <q-item>
                          <q-item-main label="Foo router"> </q-item-main>
                      </q-item>
                  </q-side-link>
                </q-list>
              </q-layout-drawer>
      1 Reply Last reply Reply Quote 0
      • syflex
        syflex last edited by syflex

        So I don’t see q-side-link on the QList sub components. So remove that line of code and add to="/foo" to the q-item without the exact

        1 Reply Last reply Reply Quote 0
        • syflex
          syflex last edited by syflex

          This should do.

          <q-layout-drawer
          v-model=“drawerState”
          :content-class="$q.theme === ‘mat’ ? ‘bg-grey-3’ : null"
          >
          <q-list no-border link inset-delimiter dense>
          <q-list-header>Menu</q-list-header>

                      <q-item to="/foo">
                          <q-item-main label="Foo router"> </q-item-main>
                      </q-item>
                  
                </q-list>
              </q-layout-drawer>
          1 Reply Last reply Reply Quote 0
          • B
            bruno.ronchetti last edited by

            Thanks syflex. That’s it, it works perfectly now.

            I got the q-side-link from here: https://v0-14.quasar-framework.org/components/layout-side-links.html
            but did not notice that it refers to an older version. The new syntax seems much more straight-forward btw.

            Thanks
            again.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post