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

    How to separate `LeftSideDrawer`?

    Help
    3
    9
    579
    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 would like to separate LeftSideDrawer.
      How to pass showLeft props when resize layout

      // Layout
      <left-side show="showLeft">
      ----------
      // LeftSide
      <q-layout-drawer
            v-model="showLeft"
            :width="270"
            side="left"
          >
      ...
      props: ['showLeft']
      

      Please help me

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

        Your question makes no sense, unfortunately. What does “separate LeftSideDrawer” mean? showLeft also isn’t a prop.

        Scott

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

          Sorry for my example

          • App.vue
          <q-layout
              ref="layout"
              view="lHr lpR lfr"
            >
          
            <left-side show="showLeft">
          ...
          data() {
            return {showLeft: true}
          }
          
          • LeftSide.vue
          <q-layout-drawer
                v-model="showLeft"
                :width="270"
                side="left"
              >
          ...
          props: ['show'],
          data() {
            return {showLeft: this.show}
          },
          watch: {
            show(val) {
               this.showLeft = val
            }
          }
          

          It don’t work, when I resize windows

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

            I still don’t understand what it is you want to happen. What is “it” in “It don’t work”? Do you mean something like the left drawer has it’s own behavior, when the window gets smaller?

            Scott

            1 Reply Last reply Reply Quote 0
            • G
              genyded last edited by

              I think you may be talking about the fact that if you make the windows smaller while the side drawer(s) is/are open, the will disappear, but if you go larger to smaller resize they do not. If so, the always happens and has nothing to do with if you drawer is a seperate component or not. It’s the way the DOM works in browsers when adding/removing elements in certain states. There are some very hacky ways to get around it, but they are more trouble then they are worth. If your app is well designed though, most users will not be resizing with the drawers open (especially making them smaller).

              If that is not what you are talking about, then as stated you need to provide more specific information on what you are talking about. EXACTLY what can we do to reproduce the issue the issue?

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

                @genyded, you are right.
                but I don’t know how to change show props = false with LefSide auto closed when click outside
                (Where to upload image in this forum)

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

                  @theara

                  (Where to upload image in this forum)

                  Click on the “Reply” button to the person you want to reply to. You’ll get the full editor.

                  Scott

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

                    @s-molinari
                    0_1535274990267_6ff10c3b-89c4-44ae-a9d8-7dbc3f441f43-image.png

                    How to track Left side closed model (false) when click list item or outside?

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

                      If you want to see how it works, it’s best to git clone the core Quasar repo, cd into the new folder “quasar” and do yarn install and then yarn dev. A browser window should open with all the cool things you can do with Quasar.

                      Scroll down to “NEW-LAYOUT” and take a look. Any code examples are under the “dev” folder. There you’ll also see how “left Drawer” is controlled. The whole layout component is pretty wicked. 😄

                      Scott

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