Dynamic left drawer to pages.
-
Hi guys.
I think the drawer of Q-layout is very convenient as a sub menu, or a collapse main menu.
Since I saw the drawer was defined in the layout.vue, how can I do if I have a share layout with share main menu on top header ( toolbar), while different pages have their own left drawer?
I tried to define and export various in the page.vue but it’s not work to {{}} it in layout.
Please help. Thank you. -
Put QLayoutDrawer inside of every QPage – this way you have a specific drawer for each page.
-
This is the error when you try it: QLayoutDrawer needs to be child of QLayout
-
Yes. You need a QLayout first to start with. Then you can use QLayoutDrawer, QPageContainer, QPage etc etc