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

    QLayout Drawer onOpen\onClose handler?

    Framework
    2
    3
    361
    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.
    • K
      kiril4913 last edited by

      Is there any way to handle the open\close event (click and swipe) by layout drawer?

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

        use a boolean v-model on your q-layout-drawer then attach a watch hook on it.

        <q-layout-drawer v-model="drawerState">
        </q-layout-drawer>
        
        watch: {
          'drawerState' () {
            if (this.drawerState) { // if it is showing
              // do something
            } else { // if hidden
              // do something
            }
          }
        }
        
        K 1 Reply Last reply Reply Quote 1
        • K
          kiril4913 @metalsadman last edited by

          @metalsadman perfect! Thank you very much! SOLVED.

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