Skip to content
S3ctor’s S3cret St4sh
api

column

Arrange children vertically with optional built-in gaps.

Builds a vertical ui.TYPE.Flex. Put child layouts directly in the array portion of the options table; gap inserts fixed spacing between them. Explicit children or content remains available when data is already in that form.

Example

local H3UI = require('openmw.interfaces').H3UI

local panel = H3UI.column {
    gap = 8,
    H3UI.text 'Settings',
    H3UI.toggle {
        label = 'Enabled',
        value = true,
    },
}

Parameters

FieldTypeDescription
array childrenopenmw.ui.LayoutOrElement[]?Direct child layouts.
gapnumber?Fixed vertical spacing inserted between children.
contenttable?Explicit child content; cannot be combined with array children.
childrentable?Explicit child layouts; cannot be combined with array children.

Common layout fields are documented on the UI Components overview. The component always sets props.horizontal = false.

See also

row · spacer · window