Hello, I’m trying to put a ListWithDetail in a Category without success.
This ui schema is working :
{
"type": "Categorization",
"elements": [
{
"type": "Category",
"label": "Cat2",
"elements": [
{
"type": "ListWithDetail",
"scope": "#/properties/visuals",
"options": {
"elementLabelProp": "visualId",
"detail": {
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/visualId",
"label": "Identifiant du visuel"
},
{
"type": "Control",
"scope": "#/properties/file",
"label": "Fichier"
}
]
}
}
}
]
}
]
}
This one is not :
{
"type": "Categorization",
"elements": [
{
"type": "Category",
"label": "Cat1",
"elements": [
{
"type": "HorizontalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/bank/properties/name",
"label": "Nom"
}
]
}
]
},
{
"type": "Category",
"label": "Cat2",
"elements": [
{
"type": "ListWithDetail",
"scope": "#/properties/visuals",
"options": {
"elementLabelProp": "visualId",
"detail": {
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/visualId",
"label": "Identifiant du visuel"
},
{
"type": "Control",
"scope": "#/properties/file",
"label": "Fichier"
}
]
}
}
}
]
}
]
}
(it only happens when the ListWithDetails is in the second tab, not if it’s in the first one)
My code is basicaly the Angular seed, with a custom json schema.
Am I doing something wrong ?
Also, the elementLabelProp is not used (file is displayed instead of visualId).
Thanks for your help !