Skip to content

Considering add routers #6783

Discussion options

You must be logged in to vote

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:

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 { ... }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by DennisZhangOiler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants