Skip to content
S3ctor’s S3cret St4sh
api

row

Arrange children horizontally with optional built-in gaps.

Builds a horizontal 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 actions = H3UI.row {
    gap = 6,
    H3UI.button { label = 'Cancel', onActivate = cancel },
    H3UI.button {
        label = 'Apply',
        tone = 'positive',
        onActivate = apply,
    },
}

Parameters

FieldTypeDescription
array childrenopenmw.ui.LayoutOrElement[]?Direct child layouts.
gapnumber?Fixed horizontal 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 = true.

See also

column · spacer · divider