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

    Drawer with splitter?

    Help
    5
    7
    994
    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.
    • rubs
      rubs last edited by

      Hi, I’m trying to create a layout with a drawer that works as a splitter. For that I’m using a QDrawer and a QPageContainer as the #before and #after slots of QSplitter, respectively, and have the QDrawer width updated in real time as the splitter moves. Seems to work at first, but there are problems. First, when the drawer is collapsed, the splitter still shows up, and the QPageContainer elements are in the wrong position. Also, the contents move twice as fast as they should.

      Here is a pen that shows all these problems.

      I suspect there should be a better and more elegant way to do it, but I found none, not here, not or on the net. Any pointers?

      Many thanks in advance!

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

        bump
        Any ideas?

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

          @rubs here, also fixed some quirks when q-page-container is adding padding left same as q-splitter’s left width https://codepen.io/metalsadman/pen/YzPgKML

          qyloxe 1 Reply Last reply Reply Quote 5
          • qyloxe
            qyloxe @metalsadman last edited by

            @metalsadman said in Drawer with splitter?:

            @rubs here, also fixed some quirks when q-page-container is adding padding left same as q-splitter’s left width https://codepen.io/metalsadman/pen/YzPgKML

            Wow! This is some non-trivial layout! It looks like Quasar needs some themes/layouts gallery with such contributions. Maybe in the future it will be possible to “add” layout/theme as one can now “add” app extensions?

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

              Great! Thanks a lot. I’ll change my code accordingly. Always learning from you guys.

              1 Reply Last reply Reply Quote 0
              • C
                chyde90 last edited by

                This is awesome! I’m gonna put it in my project, too 🙂

                1 Reply Last reply Reply Quote 0
                • J
                  julioferraz last edited by

                  It was very good. I tried to make the embedded splitter, it works but when I close it the middle part closes too. I tried to change the css classes, but I couldn’t.

                  https://codepen.io/julioferraz/pen/oNbRQgw

                  Automatically translated.

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