Skip to main content
Version: Next

Flex Container

A flow container for grouping and arranging children. The workhorse of layout — most screens are a few of these nested two or three deep.

The Flex Container component as it renders with its default settings.The Flex Container component as it renders with its default settings.

Reach for it when you need:

  • A KPI row
  • A side panel
  • Any group of components that should flow together

Component name: FlexContainer · Category: Container

In the palette: Flexible layout container

Properties

Any property can be bound to a tag, another component's property, or a query.

PropertyTypeDefaultDescription
directionenumrowOptions: row · column · row-reverse · column-reverse.
wrapenumnowrapOptions: nowrap · wrap · wrap-reverse.
justifyenumflex-startOptions: flex-start · center · flex-end · space-between · space-around · space-evenly.
alignItemsenumstretchOptions: flex-start · center · flex-end · stretch · baseline.
alignContentenumflex-startOptions: flex-start · center · flex-end · stretch · space-between · space-around.
gapnumber12
paddingnumber16
stylestyle{}Custom CSS properties

Events

Attach event actions to these in the Event Manager.

EventLabelGroupPayload
clickClickMouseThe DOM event.
dblclickDouble clickMouseThe DOM event.
contextmenuRight clickMouseThe DOM event.
mouseenterMouse enterMouseThe DOM event.
mouseleaveMouse leaveMouseThe DOM event.
Right-click behaves differently in the Designer

contextmenu fires your configured actions at runtime only — in LiveView and in preview. On the Designer canvas the right-click is captured to open the Event Manager, so testing it there will not run your actions. Test right-click in preview.

Notes

Two or three levels of nesting is readable. Six is a layout nobody will maintain.