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

    What is the `ref` in `<q-layout>` used for?

    Help
    3
    3
    1531
    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.
    • S
      Sixtus last edited by

      The ref is often set as an attribute for <q-layout> in the documentation. I cannot find an explanation for this, though.

      <q-layout ref=“layout” view=“hHr LpR lFf” >
      {…}
      </q-layout

      In what scenario should I use this?

      1 Reply Last reply Reply Quote 0
      • M
        Max last edited by Max

        allows you to reference it somewhere in your code…

        look here: http://quasar-framework.org/components/layout.html

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

          its a reference to that component, allows you to access its methods. so you can do $refs.layout.toggleRight()

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