Builds a vertical ui.TYPE.Flex. Use items for a list of layouts, or children or content when the source is already named that way.
Example
local ui = require 'openmw.ui'
local H3UI = require('openmw.interfaces').H3UI
ui.create {
type = ui.TYPE.Container,
layer = 'Windows',
content = ui.content {
H3UI.list {
items = {
H3UI.listItem {
label = 'First entry',
},
H3UI.listItem {
label = 'Second entry',
},
},
},
},
}Parameters
| Field | Type | Description |
|---|---|---|
items | table? | Child layouts; used when content and children are absent. |
content | table? | Child content; takes precedence over children and items. |
children | table? | Child layouts; takes precedence over items. |
template | openmw.ui.Template? | Replaces the default list template. |
Common layout fields are documented on the UI Components overview.