Add repeaters to components
-
- UpdatedFeb 1, 2024
- 4 minutes to read
- Washington DC
- Building applications
In UI Builder, use repeaters to repeat one or more components with results from a data resource.
Before you begin
Role required: ui_builder_admin
About this task
The repeater component acts as a basic loop that repeats the data you provide in multiple components within UI Builder. Repeaters use an array or an array of objects. For example, the array [{"task": "A"},{"task": "B"}]
repeats the content inside it two times. Repeaters enable you to bind
values to a data array property. @item.value.{property_name}
binds the values to the component inside the repeaters. If you want to bind a task, you can bind it as @item.value.task
, and the
repeater displays the correct value.
Components inside a repeater repeat the number of items in the data source, regardless of whether the component output is made dynamic or not. For example, say that you place a Header component inside a repeater with three data elements but don't change the Label field. Then you see three instances of the Header with the same output Label.
Procedure