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

    Nested <q-layout>

    Help
    3
    5
    1817
    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.
    • L
      liquidity last edited by

      Hi All I’m struggling with a layout issue and before I go any further is it possible to have nested <q-layout>'s?

      For instance Main contains a <q-layout> with the outer controls and some sidebars, but is would be great if dashboard (a sub route) could also use a layout structure?

      At the moment when I try this they just draw all over each other.

      routes: [
      	{ path: '/',
      		component: load('main'),
      		children: [
      			{
      				path: 'dashboard',
      				component: load('dashboard')
      			},
      

      Screen shot here

      1 Reply Last reply Reply Quote 0
      • L
        liquidity last edited by

        Screenshot :
        https://drive.google.com/file/d/0B-kAyGh2MNc4MkEyT1JyWjZSNVU/view?usp=sharing

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

          You should not be using another q-layout… unless you use a fullscreen modal but that is hacky

          Does dashboard need to be a child route of main? Make it a sibling

          1 Reply Last reply Reply Quote 0
          • L
            liquidity last edited by

            Thanks, no it just would have made the layouts easier, I’ll break main down into more discrete components and make it a sibling.

            Just needed to know if I was off track.

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

              One idea I am trying: using portal-vue (https://portal-vue.linusb.org/) in the header and footer to add additional sub-headers and sub-footers.

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