Screen Management
A modern classic application is composed of multiple screens, with a main screen and multiple sub-screens. User goes from main screen to sub-screen, and then back to main screen. Without screen management, user has to manually switch between screens.
Since v0.25.0, we add a few features to support this:
Screen Management
configurationNavigateBar
widgetMain
attribute of screen
The feature is disabled by default. To enable it:
-
Enable
Screen Management
Go to
Project
->Project Config
->Screen Management
-
Set a
Main
screenMain screen is the entry point of the application.
If a screen is set as
Main
, others will be treated as sub-screens.
-
Add
NavigateBar
to sub screensExpand
WidgetBar
, there's a new widgetNavigateBar
appears inHigher Order Component
category. Drag and drop it to screens other thanMain
screen. Usually it's placed under the statusbar of a screen.The
Back
action ofNavigateBar
will return to the previous screen.
- Add a button to jump from main screen to sub-screen
Just as you did before, add a button to the main screen and set
Clicked
action to load the sub-screen above.
Now you're good to go. After you click the button, the sub-screen will be loaded and displayed, and click the back button on the sub-screen to return to the main screen.