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

    Select and router links

    Help
    2
    3
    552
    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.
    • G
      Geita last edited by

      Are there an easy way to have router-links in an q-select, autocomplete and so on ? I want to list child-pages in a q-select and load them into router-view.

      <template>
      <div>
      <q-select
      filled
      v-model=“model”
      :options=“options”
      map-options
      />

      <router-view></router-view>
      </div>
      </template>

      export default {
      data () {
      return {
      model: null,
      options: [
      {
      label: ‘Google’,
      value: ‘goog’,
      to:’/child-page or href:’/childpage’
      },

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Use the options slot with QItem, which can be used as router links.

        https://quasar.dev/vue-components/select#Example--Options-slot

        Scott

        G 1 Reply Last reply Reply Quote 0
        • G
          Geita @s.molinari last edited by

          @s-molinari Beautiful!!🙌 🙌 🙌 . Thanks.

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