Array Example
The array renderer is used, when an object with type array
is used.
To get a good overview, have a look at the Schema
tab in the demo below.
- Demo
- Schema
- UI Schema
- Data
schema.json
{"type": "object","properties": {"comments": {"type": "array","items": {"type": "object","properties": {"date": {"type": "string","format": "date"},"message": {"type": "string","maxLength": 5},"enum": {"type": "string","enum": ["foo","bar"]}}}}}}
uischema.json
{"type": "VerticalLayout","elements": [{"type": "Control","scope": "#/properties/comments"}]}
{"comments": [{"date": "2001-09-11","message": "This is an example message"},{"date": "2022-10-04","message": "Get ready for booohay"}]}
Our current array renderer is not supported on mobile, sorry.