Considering add routers #6783
Answered
by
ogoffart
DennisZhangOiler
asked this question in
Ideas
-
I found out that slint does not have router currently, which will be very convenient when developing multiple scene apps. |
Beta Was this translation helpful? Give feedback.
Answered by
ogoffart
Nov 14, 2024
Replies: 1 comment
-
Could you elaborate on what exactly you mean by "router"? In my mind, this means something that associate some particular URL to some particular ui component to render. What is done if you have multiple scene is to have: export enum Page { foo, bar }
export component MyWindow inherits Window {
in-out property <Page> page;
if page == Page.foo : FooPage { ... }
if page == Page.bar : BarPage { ... }
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
DennisZhangOiler
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you elaborate on what exactly you mean by "router"?
In my mind, this means something that associate some particular URL to some particular ui component to render.
But Slint is not a web framework and doesn't work with URL, so this is a bit abstract.
What is done if you have multiple scene is to have: