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

    Active on `List Item` via active router?

    Help
    3
    6
    2917
    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.
    • T
      theara last edited by

      I use List Item on sidebar.
      I would like to active item list via router active name???

      <q-list highlight>
        <q-list-header>Recent chats</q-list-header>
        <q-item>
          <q-item-side>
            <q-item-tile avatar>
              <img src="statics/boy-avatar.png">
            </q-item-tile>
          </q-item-side>
          <q-item-main label="John Doe" />
          <q-item-side right>
            <q-item-tile icon="chat_bubble" color="green" />
          </q-item-side>
        </q-item>
        <q-item>
          <q-item-side avatar="statics/linux-avatar.png" />
          <q-item-main label="Jim Doe" />
          <q-item-side right icon="chat_bubble" />
        </q-item>
        <q-item-separator />
        <q-list-header>Previous chats</q-list-header>
        <q-item>
          <q-item-side avatar="statics/guy-avatar.png" />
          <q-item-main label="Jack Doe" />
        </q-item>
      </q-list>
      
      1 Reply Last reply Reply Quote 0
      • T
        theara last edited by

        Now it work, I used q-scroll-area

              <q-scroll-area class="fit">
                <q-list-header>Left Panel</q-list-header>
                <q-item to="/showcase/layout-demo/play-with-layout">
                  <q-item-side icon="account circle" />
                  <q-item-main
                    label="Play with Layout"
                    sublabel="Learn more about it"
                  />
                  <q-item-side
                    right
                    icon="thumb_up"
                  />
                </q-item>
        
        1 Reply Last reply Reply Quote 0
        • T
          theara last edited by theara

          oh maybe problem with <q-item to="/".
          And then still have problem with item selected
          0_1533386798458_425d0b3c-bf2b-414b-9777-c3f12760248d-image.png

          1 Reply Last reply Reply Quote 0
          • T
            theara last edited by

            Now I use redirect in Vue Router to break difference path

              {
                path: '',
                redirect: { name: 'home' },
              },
              {
                path: '/home',
                name: 'home',
                component: Home,
              },
            
            1 Reply Last reply Reply Quote 0
            • M
              mortyspace last edited by

              use exact directive: <q-item clickable v-ripple to="/" exact>

              1 Reply Last reply Reply Quote 1
              • sibelly
                sibelly last edited by sibelly

                worked like a charm @mortyspace !

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