User Interface - Main concepts
Screens
By default, an UI App automatically gets a home screen.
New screens can be added from the marketplace.
The home screen has a blue icon to indicate it is the initial screen.
When opened, content (buttons, text fields, …) can be added to the screen from the marketplace.
If the app is running, your modifications should appear in real time
Visual Components
The content added to a screen is called Visual Component.
Visual Components Properties (size, position, text, …) can be edited in the Properties Panel.
Visual Components positioning properties (x and y) can be set manually in pixels, using pre-defined settings (left, top, center, middle, right, bottom) or using a custom Function.
Visual Components size properties (width and height) can be set manually in pixels, in percentage, or using a custom Function.
Groups & Layouts
Visual Components can be grouped together. Their size and position properties are then relative to the group.
Once created, group settings and content can be modified by clicking on “Edit”.
Double clicking outside the group leaves Group edition.
Layouts (vertical, horizontal, grid, …) can be applied to the elements of the group. Each layout comes with its specific sizing and position options.
Visual Components can be re-ordered using “Layers” panel to move them out of / in the group or to change their rank in the group (e.g. to change their order in a vertical or horizontal layouts, or to their z-index in an absolute layout)
Exercice 2 - First screen
- Open App “Notes App”
- Add 2 Screens (“New note” and “View note”)
Your app should look like this:
- Open the Screen ”Home screen”
- Add a new Label named “Title”
- Theme class = “h1”
- x = center of the screen (2nd tab)
- Text = “My Notes” (4th tab)
- Text horizontal pos. = center (4th tab)
- Add a new Button named “New note button”
- Theme class = "black"
- Position = just below ”My Notes” Label (using mouse)
- x = center of the Screen (2nd tab)
- Text = “New note” (4th tab)
Your screen should look like this: