Skip to main content

BoxLayout

Purpose

The BoxLayout arranges multiple ViewTemplates or referenced Views in a vertical or horizontal flow. It is suitable when several elements should be shown in a simple ordered structure without introducing grouping, tabs, or master-detail behavior.

Behavior

Compared to NoneLayout, BoxLayout provides additional control over direction and wrapping behavior.

Configuration

  • direction: Select whether the ViewTemplates are shown vertically or horizontally.
  • maxDirectionElements: Specify the maximum number of ViewTemplates to be shown in the order defined by direction. If, for example, direction is VERTICAL and maxDirectionElements is 3, then the first three ViewTemplates are shown one below the other, while the fourth ViewTemplate starts a new column.
  • autoHeight: Check whether the layout should determine its height automatically. The automatic layout height is calculated from the height of its components.
tip

For every layout, you can change the order of the ViewTemplates simply by dragging and dropping them in the Navigator window.

Example usage

OrganisationEdit_view in Context Organisation. In the client, this view is visible under Contact Management > Company whenever you create or edit a company dataset. Address data, communication data, and attribute data are shown in vertical order.