EFlex Flex
Examples
Direction and gap
Main axis distribution
Wrapping
Vertical and reverse
Growth and constraints
Properties
alignstringAlignment of items along the cross axis.
"start" / "center""end" / "stretch"
"stretch"alignContentstringDistribution of wrapped lines along the cross axis.
"start" / "center""end" / "stretch""space-between" / "space-around""space-evenly"
"start"contentaliasDefault content slot; aliases button text in EFloatButton.
body.datacontentChildrenaliasRead onlyVisual children managed by this layout.
body.childrengapvarHorizontal and vertical spacing between items.
Number or [horizontal gap, vertical gap]
12horizontalboolRead onlyWhether the main axis is horizontal.
ComputedhorizontalGaprealRead onlyValidated horizontal gap.
ComputedinsetrealRead onlyValidated container inset.
ComputedjustifystringDistribution of items along the main axis.
"start" / "end""center" / "space-between""space-around" / "space-evenly"
"start"layoutvarRead onlyComputed item positions and sizes.
ComputednaturalCrossrealRead onlyNatural content size along the cross axis.
ComputednaturalMainrealRead onlyNatural content size along the main axis.
ComputedorientationstringDirection of the flex layout.
horizontal
vertical
"horizontal"paddingrealContainer padding in pixels.
0reverseboolReverse the main-axis layout direction.
falseverticalGaprealRead onlyValidated vertical gap.
ComputedwrapboolWrap items when main-axis space is insufficient.
false