I have a question about the UI Schema in case I have a embedded array of data.
My json looks like this
Schema:
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"documentation": {
"type": "string"
},
"conditions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"language": {
"type": "string"
},
"expression": {
"type": "string"
}
}
}
}
}
}
I have two fields ‘name’ and ‘documentation’ and a array of data named ‘conditions’ with the detail items ‘language’ and ‘expression’.
My UISchema looks like this:
{
"type": "Categorization",
"elements": [
{
"type": "Category",
"label": "General",
"elements": [
{
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/name"
},
{
"type": "Control",
"scope": "#/properties/documentation",
"label": "Documentation",
"options": {
"multi": true
}
}
]
}
]
},
{
"type": "Category",
"label": "Conditions",
"elements": [
{
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/conditions",
"label": "Conditions",
"options": {
"detail": "GENERATED"
}
}
]
}
]
}
]
}
This results in a output like this in the second category (conditions)
My question is: How can I define in the UI Schema, that the item ‘expression’ in my detail array is rendered as a Multi Line input field?