function · ui

list

Records one bounded selectable list with stable row identities.

ui.list(action_id, rows, options?)
Stable ID
ui.list
Owner
app.ScriptPackageHost
Authority
presentation
Timing
composition
Availability
Phase 14 package callbacks
Side effects
records bounded detached presentation intent
Determinism
Host-created package identity and per-callback budgets.
Introduced
1.19.0

Usage

Compose a scroll-bounded selectable list. Give every row a stable ID so selection remains meaningful when visible labels or detached values change.

Parameters

Returns

No gameplay value. Selecting a row dispatches action_id and the row ID to lifecycle.handle-action.

Cost

The list and each row count against the bounded widget budget; row text counts against the text budget.

Fields

This symbol has no fields.

Errors

Examples

ui.list("ui.action.work.select", {{id = "job:42", label = "Gather timber", value = "Ready", selected = true}}, {visible_rows = 6})

API history

Related symbols

Project references