Saltar al contenido principal
Version: 4.5.0

Layout

AWE layout service helps the developer to position the screen layers taking advantage of all the screen size. There are two ways of 'expanding' the layout:

  • Vertically: With the expandible="vertical" attribute the direct children with a expand style will increase in height to fit the container size. All children without the expand class will keep their height.
  • Horizontally: With the expandible="horizontal" attribute the direct children with a expand style will increase in width to fit the container size. All children without the expand class will keep their width.

Special expansion

There are some special styles which can be used to expand the layout slightly different than with the standard expand style:

  • expand-2x: Expands the tag with double size compared to a single expand.
  • expand-3x: Expands the tag with triple size compared to a single expand.
  • expand-maximize: Expands the layout of the tag only when the parent window is maximized.

Vertical layout

In the following samples you can see an element with the expandible="vertical" attribute. Red boxes are children without the expand style, and blue boxes are children with the expand style:

Two expandible children and one static child

Layout vertical 1

One expandible child and some static children

Layout vertical 2

Horizontal layout

In the following samples you can see an element with the expandible="horizontal" attribute. Red boxes are children without the expand style, and blue boxes are children with the expand style:

Two expandible children and one static child

Layout horizontal

One expandible child and some static children

Layout horizontal 2

Combined layout

To design an application screen you can combine the usage of vertical and horizontal layouts with expandible and not expandible children:

Combined layoutCombined layout 2Combined layout 3