FlexLayoutConfig Object¶
FlexLayout is a native layout manager implemented in Chromium.
For more documentation on Layout Managers, see the Chromium docs.
orientationstring (optional) - How the layout is oriented. Defaults tohorizontal. One of the following:horizontal- Lay out child views along a horizontal axisvertical- Lay out child views along a vertical axis
mainAxisAlignmentstring (optional) - The alignment of children in the main axis. Defaults tostart. One of the following:startcenterendstretchbaseline
crossAxisAlignmentstring (optional) - Cross-axis alignment type. Defaults tostretch. One of the following:startcenterendstretchbaseline
interiorMarginObject (optional) - Spacing between child views and host view border. Defaults to0margin.topnumberbottomnumberleftnumberrightnumber
minimumCrossAxisSizenumber (optional) - The minimum cross axis size for the layout. Defaults to0.collapseMarginsboolean (optional) - Whether adjacent view margins should be collapsed. Defaults tofalse.includeHostInsetsInLayoutboolean (optional) - Whether to include host insets in the layout. Use when e.g. the host has an empty border and you want to treat that empty space as part of the interior margin of the host view. Most useful in conjunction withcollapseMarginsso child margins can overlap with the host's insets. Defaults tofalse.ignoreDefaultMainAxisMarginsboolean - Whether hostinteriorMarginoverrides default child margins at the leading and trailing edge of the host view. Defaults tofalse.flexAllocationOrderstring (optional) - Order in which the host's child views receive their flex allocation. Setting to reverse is useful when, for example, you want views to drop out left-to-right when there's insufficient space to display them all instead of right-to-left. Defaults tonormal. One of the following:normalreverse
Markdown source: View on AtomGit·Content from the open-source project el/electron