Reusable Window with dynamic window content #6772
Unanswered
TheColorRed
asked this question in
Q&A
Replies: 1 comment
-
The We do have an experimental |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am making a project that will use a lot of windows. Is there a way that I can easy use a base window component and dynamically load the content without having to do an if statement for each component type that it should load?
Currently the window looks something like this, where the top bar will be static on all windows, but the content will change for every window.
In the rectangle section, to get this to work I will have to do an if statement for every window which would will start to get redundant especially for the amount of windows I plan on having.
Is there maybe a way to dynamically load files, maybe something like this:
or even through the rust code (pseudo code) where maybe we can have a
component
type (which I don't believe exists as a type).Beta Was this translation helpful? Give feedback.
All reactions