Skip to content

Table ​

Arranges children in a table layout.

luau
PeanutUI.Frame {
    table = {
        gap = PeanutUI.Size(8, 8),
        majorAxis = "RowMajor",
    }
}

Properties ​

PropertyTypeDescription
horizontalbooleanFill horizontally.
sortByNamebooleanSort children by name.
absoluteContentSizeVector2Absolute content size.
horizontalAlign"Left" | "Center" | "Right"Horizontal alignment.
verticalAlign"Top" | "Center" | "Bottom"Vertical alignment.
majorAxis"RowMajor" | "ColumnMajor"Fill order.
gapSizeSpace between cells.