A generic design template for displaying data in a repeated form layout. With a Repeater, you can display several rows of data down the page, with just a few components.
The component can include repeating sets of fields within the component form. A form element called a 'Field repeater' allows you to wrap one or multiple fields within a repeatable group. The Field repeater includes a button that allows the content author to add another group of fields as an array.
The repeater field allows you to create a set of sub-fields that can be repeated again and again while editing content. It is essentially a wrapper for a group of sub-fields, so to loop through the rows of data and target the sub-field values, you must make use of a few extra functions.
...
Overview
The Repeater is a container
You can add a number of components to the Repeater
You can decide how the user interface (UI) looks like
The Repeater will repeat the components multiple times
The component will repeat depending on how many records are in the model
Attributes
Model
Basically, the Repeater required multiple records, so it required a multi-record model or an array of the single-record model, Refer to this link Models
Create New Model: You can either choose the model from the list or you can create the new model by clicking on “Create New Model“ Option for your table
...
Context Models
You can create a sub-model by using the Models attribute
A Context Model is created by using a multi-record model
Create Models, Refer to this link Models
...
Click on Run & Preview
The record of the field added in the repeater will be displayed
...
Include Page | ||||
---|---|---|---|---|
|