H3lp Yours3lfDocs
api

column

Arrange children in a vertical Flex layout.

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

Example

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

ui.create {
  type = ui.TYPE.Container,
  layer = 'Windows',
  content = ui.content {
    column {
      children = {
        text {
          text = 'Top',
        },
        text {
          text = 'Bottom',
        },
      },
    },
  },
}

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

row · list · window