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 on top of the header

    Framework
    2
    3
    2110
    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
      kiranvasi last edited by kiranvasi

      Hello All,

      I am trying to put left drawer above my header ( on top of header in left side ) . But no luck . The drawer is starting always below the header .
      Could any one please help me to fix this one ? Below is the code .

      ( I remember I made it working couple of weeks ago , but can not remember what I had done )

      Thank You .

      ==============================================================

      
      <template>
        <q-layout>
          <q-drawer   ref="leftDrawer">
            <div class="toolbar light">
              <q-toolbar-title :padding="1">
                Left-side Drawer
              </q-toolbar-title>
            </div>
            <p style="padding: 25px;" class="text-grey-7">
             Test Drawer
            </p>
          </q-drawer>
           <div slot="header" class="toolbar">     
          </div>
          <router-view class="layout-view"></router-view>
        </q-layout>
      </template>
      <script>
      
        export default {
          data () {
            return {
              search: ''
            }
          }
        }
      
      </script>
      
      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        @kiranvasi Hi, this is currently not possible, but targeting the ability to enable this for v0.14. Cheers.

        K 1 Reply Last reply Reply Quote 0
        • K
          kiranvasi @rstoenescu last edited by

          Thank you @rstoenescu for taking time to respond to my question . Good luck . For now I am using the below work around ( Using two <q-layout> tags 🙂 I know this is not the way to do it . But to get the feel of look

          <template>
            <q-layout>
              <q-drawer   ref="leftDrawer">
                <div class="toolbar light">
                  <q-toolbar-title :padding="1">
                    Left-side Drawer
                  </q-toolbar-title>
                </div>
                <p style="padding: 25px;" class="text-grey-7">
                 Test Drawer
                </p>
              </q-drawer>
          <q-layout>
               <div slot="header" class="toolbar">
            </q-layout>   
              </div>
              <router-view class="layout-view"></router-view>
            </q-layout>
          </template>
          <script>
            export default {
              data () {
                return {
                  search: ''
                }
              }
            }
          </script>
          <style type="text/css">
            .drawer{
              z-index: 999;
            }
          </style>
          1 Reply Last reply Reply Quote 2
          • First post
            Last post