I would like to know if it’s possible to:
- Render the first column as a label (or at least as a readonly input)
- Hide the “Add” and “Remove” button
Will I have to create my custom renderer? This is what I’m trying to achieve:
And this is my schema:
{
"schema": {
"type": "object",
"properties": {
"brands_ranking": {
"type": "array",
"items": {
"type": "object",
"readonly": true,
"properties": {
"brand": {
"type": "string",
"readOnly": true
},
"most_favorite": {
"type": "string"
},
"second_favorite": {
"type": "string"
},
"third_favorite": {
"type": "string"
}
}
}
}
}
},
"uischema": {
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/brands_ranking",
"label": "Ranking"
}
]
},
"data": {
"brands_ranking": [
{
"brand": "Brand 1",
"most_favorite": "",
"second_favorite": "",
"third_favorite": ""
},
{
"brand": "Brand 2",
"most_favorite": "",
"second_favorite": "",
"third_favorite": ""
},
{
"brand": "Brand 3",
"most_favorite": "",
"second_favorite": "",
"third_favorite": ""
}
]
}
}

