-
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.
-
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.
-
I just got here, but I think if someone wants to build like slint library who handled routing like https://atomic-router.github.io/ is really good. I wonder if we can make it ourselves and treat it as some plugin into our app. |
Beta Was this translation helpful? Give feedback.
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: