LongLink State Elements

For

Definition

Repeats child XML for every item in an array.

Usage

Use For when query results or state arrays should render repeated rows, cards, or controls.

Attributes

  • each required. Expression that resolves to an array.
  • as required. Local item variable name for each iteration.

Children

Any rendered XML elements. Each iteration gets the item alias and index value.

Example

xml
<For each="$orders.items" as="order">
<Card>
<Text value="$order.number" />
</Card>
</For>