UITableLayout¶
Lays out sibling UI elements and their child UI elements as rows/columns and cells in a table.
Not implemented yet
Table layout is not implemented.
Workaround: Lay out rows manually or use a grid-like Luau helper.
Description¶
A UITableLayout lays out sibling UI elements as rows in a table. Child UI elements (the table cells) of these rows are then arranged in columns (within rows). Each cell within a row has the same height, and each cell within a column has the same width.
By changing the UIGridStyleLayout.FillDirection, sibling UI elements can act as columns instead.
When applied, a UITableLayout will take control of sibling and cell elements' GuiObject.Size and GuiObject.Position. Changing these in the Properties window is still possible will not produce any effect.
Dimensions of the cells in the resulting table are controlled by the parent UI element's dimensions. Unless UITableLayout.FillEmptySpaceColumns or UITableLayout.FillEmptySpaceRows is enabled, the cell dimensions will be that of the parent UI element (and thus tables with more than one cell extend outside of their parent).
Cells will continue to respect UISizeConstraint objects within them. In other words, setting UISizeConstraint.MinSize on UISizeConstraints within the header cells can determine the size of the rest of the cells. If UISizeConstraint.MaxSize restricts a cell's size from filling the allotted space (i.e. another row/column is wider than it), it will align to the top-left.
Inheritance¶
Object → Instance → UIBase → UIComponent → UILayout → UIGridStyleLayout → UITableLayout
Properties¶
| Member | Signature | Summary |
|---|---|---|
FillEmptySpaceColumns |
FillEmptySpaceColumns: bool |
Determines whether cells are sized such that they occupy the horizontal space of the parent UI element. |
FillEmptySpaceRows |
FillEmptySpaceRows: bool |
Determines whether cells are sized such that they occupy the vertical space of the parent UI element. |
MajorAxis |
MajorAxis: TableMajorAxis |
Determines whether sibling UI elements are treated as rows or columns. |
Padding |
Padding: UDim2 |
Determines the empty space between cells. |
Roblox reference: UITableLayout
Generated from Nova's API dump and Roblox creator-docs. Nova-only members come from the engine's reflection metadata.