Using QLayout with router views #310
-
Hi, I'm trying to implement something like, using QLayouts : https://quasar.dev/layout/routing-with-layouts-and-pages How do i use the router-view in Quasar so that for example, clicking on the Portfolio item in the drawer will show some new content in the center of the page? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
With JustPy you can't use the router-views but you don't need to. You simply change the content of the page based on the input of the user, but you do it in python on the backend (there is no frontend in JustPy). Here is an example where the content on the page is changed based on user interaction: Here is a complete example with Quasar's layout: |
Beta Was this translation helpful? Give feedback.
With JustPy you can't use the router-views but you don't need to. You simply change the content of the page based on the input of the user, but you do it in python on the backend (there is no frontend in JustPy).
Here is an example where the content on the page is changed based on user interaction:
https://justpy.io/tutorial/handling_events/#example-3-event-changes-elements-on-page
Here is a complete example with Quasar's layout:
https://github.com/elimintz/justpy/blob/master/examples/dogs.py