PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

MajorAxis

UITableLayout

TableMajorAxis

MajorAxis determines whether sibling UI elements are treated as rows or columns. Below, the left uses a Enum/TableMajorAxis of RowMajor, and the right uses ColumnMajor.

Row majorColumn major

Note: it seems that this property isn’t making noticeable changes, and rather its behavior is determined by UIGridStyleLayout/FillDirection instead.


Code Samples


Build UI Table

This code sample builds a table of 4 rows, the first having headers. It does this using some for-loops and a UITableLayout. The widths of each column are set using UISizeConstraints.