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 change the q-layout-drawer's width?

    Help
    3
    5
    2512
    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.
    • B
      bosconovitchi last edited by

      When i write a wpa projsct, i want a huge drawer to almost cover 80%vh.But the default size is too small .What shall i do?

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

        Use the “width” prop? It can only use pixels though. Maybe you’ll need to create a computed property to figure out the right size for the current screen.

        In the end, you might want to rethink your use of the drawer with something else.

        Scott

        B 1 Reply Last reply Reply Quote 1
        • B
          bosconovitchi @s.molinari last edited by

          @s-molinari
          I used stylus and “:content-style” property to control width ,it dosn’t work.
          For example like this
          <q-layout-drawer :content-style="{width: ‘800px’}" side=“right” >

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

            @bosconovitchi check: https://quasar-framework.org/components/layout-drawer.html#QLayoutDrawer-Vue-Properties .

            its :width prop!

            B 1 Reply Last reply Reply Quote 1
            • B
              bosconovitchi @Max last edited by

              @max
              Thanks a lot.I was using the old version guide.

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