Basic Array
A simple array of objects with multiple properties.- Schema
- UI Schema
- Data
Array with Sorting
Enable sort buttons to allow users to reorder array items.- UI Schema
- Result
Nested Arrays
Arrays can contain objects with their own nested arrays, creating complex data structures.- Schema
- UI Schema
- Data
Custom UI Schema for Nested Arrays
You can register custom UI schemas for array items to control how nested elements are rendered:uischemas array to the JsonForms component.
Array Options
Customize array behavior with control options:showSortButtons
Enable or disable sorting controls:detail
Customize the layout for each array item:elementLabelProp
Specify which property to use as the label for array items:List with Detail
For complex array items, use the ListWithDetail renderer to show a master-detail view:Array Validation
JSON Schema provides validation constraints for arrays:- minItems: Minimum number of items required
- maxItems: Maximum number of items allowed
- uniqueItems: Whether all items must be unique
Best Practices
- Use showSortButtons when the order of items matters
- Provide elementLabelProp to make arrays more user-friendly
- Use ListWithDetail for arrays with complex objects
- Set minItems and maxItems to guide users on expected array sizes
- For deeply nested arrays, consider registering custom UI schemas for better control
Next Steps
- Explore Complex Schemas for oneOf, anyOf, and conditional logic
- Learn about Rules for dynamic form behavior