H3lp Yours3lfDocs
api

row

Arrange children in a horizontal Flex layout.

Builds a ui.TYPE.Flex with props.horizontal = true. The component's orientation overrides props.horizontal.

Example

local ui = require 'openmw.ui'
local row = require 'scripts.s3.components.row'
local text = require 'scripts.s3.components.text'

ui.create {
  type = ui.TYPE.Container,
  layer = 'Windows',
  content = ui.content {
    row {
      children = {
        text {
          text = 'Left',
        },
        text {
          text = 'Right',
        },
      },
    },
  },
}

Parameters

FieldTypeDescription
contenttable?Child content; takes precedence over children.
childrentable?Child layouts used when content is absent.

Common layout fields are documented on the UI Components overview.

See also

column · spacer · list