Skip to content

API Function list

github-actions[bot] edited this page Dec 3, 2026 · 1 revision

Function: list()

function list<E>(element, capacity): ListType<E>;

Defined in: src/engine/core/layout/types.ts:111

A list field of up to capacity elements of element (any field type: numbers, booleans, strings, nested objects, lists). Pushing past capacity drops the element and warns once.

Type Parameters

E

E extends DataFieldType

Parameters

element

E

capacity

number

Returns

ListType<E>

Clone this wiki locally