About FlexLayout components

A FlexLayout component is a container component which is used to flexibly house other components. Each FlexLayout component can be divided into different horizontal or vertical regions, and each region can contain multiple child components. The overall positioning of those child components is specified by the FlexLayout region attributes, and their order is specified by the Sequence property.

You can nest FlexLayout components inside regions of other FlexLayout components. You can nest these components as many levels deep as you need to accomplish your form design.

A FlexLayout component can be customized by using the properties that are described in this topic.

FlexLayout container types

When using multiple regions, the FlexLayout component can group the regions horizontally or vertically.

Horizontal Box

Vertical Box

Region length

The Length and Units attributes control the individual length of each region of a FlexLayout component. Length is expressed as a number of characters, equal portions of the total available width (Flex units), or as a combination of both.

Char units only

Flex units only

Combination of Char and Flex units

About the Orientation, Pack, and Align attributes

The Orientation attribute specifies whether child components are arranged vertically or horizontally within each region. This attribute is also used to determine if a component should Fill the

The Pack and Align attributes work together to position the child components within the region.

Vertical Orientation

When the FlexLayout region is vertically oriented, use Align to position the child components at the left, center, right, or to stretch them to fill the entire width of the region. Use Pack to position the child components at the start (top), center (middle), or end (bottom) of the region.

Horizontal Orientation

When the FlexLayout region is horizontally oriented, use Align to position the child components at the top, middle, bottom, or to stretch them to fill the entire height of the region. Use Pack to position the child components at the start (left), center (middle), or end (right) of the region.

Note:  Bottom alignment (when vertically oriented) and Right alignment (when horizontally oriented) are not supported by the web client.

Theme Border

The Theme Border attribute is used to enable or disable the region's border of a FlexLayout component on WinStudio and web client.

Note: Enabling this option is applicable only for FlexRegionOnly and FlexLayoutAndRegion border visibility.

Use the Theme Editor to specify these border attributes:

  • Border color
  • Top, left, right, and bottom border visibility
  • FlexLayout and FlexRegion border visibility
    • If you select None, no border is displayed for both the FlexLayout and FlexRegion.
    • If you select FlexLayoutOnly, the border is displayed around the FlexLayout only. Any border for the regions are not displayed even if the Theme Border from the Flex Region properties is enabled.
    • If you select FlexRegionOnly, the border is displayed around the FlexRegions only. Any border around the FlexLayout are not displayed. Use the Theme Border attribute from the Flex Region properties to enable or disable the border visibility of a specific region.
    • If you select FlexLayoutAndRegion, the border is displayed for both the FlexLayout and FlexRegion. The border of the region is only displayed if the Theme Border attribute of that region is enabled.
Note: You can also use the FlexLayout theme classes that are available under the Infor theme. These theme classes have predefined border settings in the Theme Editor:
  • FlexLayoutAndRegionBorder
  • FlexLayoutBorder
  • FlexRegionBottomBorder
  • FlexRegionTopBorder
  • FlexRegionLeftBorder
  • FlexRegionRightBorder
  • FlexRegionBorder

VisibleWhen

The VisibleWhen attribute specifies the conditions under which the component is visible or hidden.

Animation

The Animation attribute is used to add a sliding and/or bouncing effect to a region when it is opened or closed. Leave the field blank to disable animation, or select from these options:

  • FromRight
  • FromLeft
  • FromTop
  • FromBottom
  • FromCenter
  • FromRightWithBounce
  • FromLeftWithBounce
  • FromTopWithBounce
  • FromBottomWithBounce
  • FromCenterWithBounce

Background image

The Background Image attribute is used to add an image to the background of a region.

Minimum/Maximum length

When a region size is defined as a number of flex units, use the Min/Max attribute to specify the maximum and minimum possible size of that flex region.

Region margins

The Default Margin property specifies the margin, measured in WinStudio characters, that defaults for any child components added to the current FlexLayout region.

The Margin property is used to override, if necessary, the Default Margin property for components contained in the FlexLayout region.

About the Orientation, Pack, and Align Attributes

The Orientation Adorner is used to select horizontal or vertical box when creating a Flex region.

The Add flex regions is used to add a region on the selected flex layout. The Flex region orientation is based on the Orientation Adorner selected.

The Remove flex regions is used to remove a region on the selected FlexLayout component.

The Add Flex is used to add a FlexLayout component on a selected region that has no contained component.