listrows
The listrows
is used to display and manage a list of rows where each row consists of fields defined in the schema. This allows for the dynamic rendering of forms that include multiple rows of data inputs, such as address lists or contact details.
Example Configuration
You can reference to this example.
The following example illustrates a listrows
component where users can enter multiple contacts with specific fields for first name, last name, and address. It also demonstrates the flexibility of customizing the minimum and maximum number of entries.
Key Attributes
model
: The data model path where the array of rows is stored. In this case,address
is the model where each row of contact data is kept.min
: Defines the minimum number of rows required (e.g., 2).max
: Defines the maximum number of rows allowed (e.g., 4).schema.fields
: An array of field configurations that will be displayed in each row. Each field can have its label, model, input type, and layout styling.
Notes
The
listrows
component is versatile and can handle different types of input fields like text, checkboxes, and dropdowns.The display of Add and Delete icons is automatically handled based on the defined
min
andmax
values.
Last updated