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

    Support for router-link on Quasar Floating Action Button

    Framework
    2
    4
    3777
    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.
    • uebbi
      uebbi last edited by uebbi

      Currently if I want to redirect the user to a certain link by clicking on the quasar-small-fab I need create a method and use window.location from there. Right?!

      Example:

      <quasar-fab icon="add" direction="up">
        <quasar-small-fab class="red" @click.native="goToFoo()" >mail</quasar-small-fab>
        <quasar-small-fab class="purple" @click.native="goToBar()" >alarm</quasar-small-fab>
      </quasar-fab>
      

      And:

      methods: {
        goToFoo () {
          window.location = '#/foo'
        },
        goToBar () {
          window.location = '#/bar'
      }
      

      It might be interesting create a new component like ‘quasar-fab-link’ with support to ‘router-link’ / similar to quasar-drawer-link

      Ex:

      <quasar-fab-link class="blue" to="/foo" > publish </quasar-fab-link>
      

      What do think?

      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        Hi,

        You’ll be able to use a new Vue directive in v0.9 called v-link (works just like v-link in Vue 1.

        1 Reply Last reply Reply Quote 1
        • rstoenescu
          rstoenescu Admin last edited by

          And also, the correct way to do it is to change route through the router (example: this.$router.push(....)

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

            Great! Tks!

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