My FNZ Studio Version

Screen-Driven Model

Latest Update: 28.11.2018 |
Documentation
2024
2023
2022.2
2022.1
11
10
9
8
7
6.3

This feature has been deprecated in Appway 7 and will be removed in Appway 9 or later. This means that you can currently still use this feature, but should plan to phase it out. For more information on deprecation and on suggested actions, see Feature Removal and Deprecation Planned with Appway 7.0.

1 Introduction to Border Layout

The Border Layout Manager is a layout screen component. The component divides the layout of a screen into five regions to help you structure your content:

  • North
  • South
  • Center
  • West
  • East

These regions are illustrated in the figure below.

wsV3-2.png
Figure 1: Border layout example

You will notice that there is no 'West' or 'South' region in this Screen. Each of the North, South, West and East regions are optional. The component can be configured so that only the regions you want to appear on screen, do appear.

The Center region is mandatory, and will always appear on screen. This region is where the main content or information should be placed. The Center region responds dynamically to the space available.

The other four regions are non-dynamic, and always remain in the same location relative to the Center region.

1.1 Regions and flaps

You can configure how the layout adapts to screen size. In Figure 1, you will notice that in the 'West' region there is a bar with the text, 'Info', written on it. This bar is called a 'flap'.

A flap indicates a region that opens or closes:

  • According to screen size. If the dimensions of a screen fall below a certain size, each region closes automatically.
  • According to user interaction. The user can open or close a region by clicking on a flap.

When a region is closed, a flap always appears, showing the user that the region can be expanded.
When a region is open, you can choose whether a flap appears or not.

Each region is configured individually. Therefore you can configure your Screen so that, for example:

  • The West region has a permanent flap, shown when the region is open and closed
  • The North region's content always appears, regardless of screen size
  • The East region has a flap, only shown when the region is closed
  • The South region never appears on screen

1.2 Border Layout Manager Component

The Border Layout Manager component consists of five elements which map to the regions North, South, East, West, and Center, as shown in the figure below.

Untitled.png

None of the elements can be removed or ordered differently. There are two ways to ensure unwanted regions do not appear in a Screen:

  • Leave the element empty
  • Uncheck the "Show Region" flag for that element on its Properties panel

2 Border Layout Manager Properties

The width of all flaps is set using the Border Layout Manager's Properties panel. All other properties, such as region width, scrolling, and style, are configured using each individual element's Properties panel.

2.1 Component Properties

  • HTML Id — Assign an HTML ID to the component
  • Show Flaps* — If disabled and the workspace.css.version property is at least v3 then this component is rendered without flaps.
  • Flap Size — Set the size of the flap bar. As the flaps are all set to the same size, this refers to the width of flaps for West and East regions, and the height of flaps for North and South regions.
  • Description — The text that appears when the component is collapsed

*When disabling "Show Flaps" for the workspace version 3 then the East and West sidebars need a trigger to be opened and closed manually.

In this case, you can use the "Border Layout Trigger" screen component.
Drag it to the Screen and add the Id of the "Border Layout Manager" component to the trigger's action.

Note: Adding more than one "Toggle Border Layout Flap" action to the same Border Layout Trigger component is not supported if more than one of the flaps is configured as a "push" (the Overlay Content option for the flap is deselected). To trigger multiple regions/flaps simultaneously with the same Border Layout Trigger, ensure that the Overlay Content option is deselected for only one (or no) region/flap.

trigger.jpg

2.2 Center Region Properties

The Center region is mandatory, and will always appear on screen. The Center region responds dynamically to the space available, and therefore has two important and mandatory properties: 'Center Min Height' and 'Center Min Width'. These two properties define the minimum container size required by the Center region: If Center region dimensions fall below either of these values, surrounding regions will close if flaps have been enabled.

  • Scroll — Check to display a scroll bar for the Center region
  • Center Min Width — The minimum width of the Center region in pixels
  • Center Min Height — The minimum height of the Center region in pixels
  • Description — The text that appears when the component is collapsed

2.3 North, West, East and South Region Properties

Each of the outer regions has the following set of properties:

Property Description
Show Region If checked, the region will be displayed on screen. Exception: Even when checked, the region will not be displayed if:
  • The region is empty
  • The region contains non-visible components
Width / Height For East and West: Configure the width of the region in pixels. Height is automatically set to 100% and cannot be altered.
For North and South: Configure the height of the region in pixels. Width is automatically set to 100% and cannot be altered.
This property (Width / Height) is mandatory.
Scroll Check to add scrollbars to the region
Enable Flaps Check to enable the region to collapse or open depending on screen size and user interaction.
The following properties only appear once flaps are enabled:
Flap Label Add a label for the flap. This is the text that will appear on the flap when the flap is displayed on screen.
Overlay Content If checked, the flap and the region will overlay the Center region when opened. The flap will also overlay the Center region when closed.
Exclude Flap Overlay If checked, the flap will not overlay the Center region when closed.
Start Expanded On loading the Screen, the region is open.
Permanent If checked, the flap is always shown on screen, independent of the size of the Center region. It will appear when the region is open and closed.
If unchecked, the flap will vanish once the Center region is at, or above, the minimum dimensions specified.

Styles can be applied to the flaps using the Style tab. You can apply a style to the flap itself and to the label which appears on the flap. Use the dropdown menu, "Known Prefixes for (Region)" to choose where the style should be applied.

3 Best Practice

Because of its dynamic behavior, the Border Layout Manager component yields the most benefits if placed as the top element in the Screen Editor. The component's adaptive features will not function correctly if placed within a static container.

3.1 Template

The Border Layout Manager component is very useful as a template screen: Use the Border Layout Manager to create a template structure, using the regions for navigation elements, headers, footers and so on.

blm_templating.jpg
Figure 4: BorderLayoutManager component with Placeholders

3.2 Mobile Devices / Tablets

When optimizing your application for use on a tablet or mobile device, tweak the Center region's Minimum Width and Minimum Height properties to improve the user experience according to the target device(s).

The Border Layout Manager component adds a CSS class, "aw_BorderLayoutManager_small", to the main container when at least one of the minimum width or minimum height criteria are not met. The CSS class can be used to indicate this particular state.

4 Compatibility

This feature requires at least IE 8, or an up-to-date version of other common browsers, in order for regions to display correctly in the workspace. IE9 and above is required for use of the flap functionality.

© 2026 Appway AG. All Rights Reserved