Show Labels for Array Elements

Hello,

I have a question regarding the ArrayRenderer with complex objects. The Data looks like this:

[
{
“Id”: “XX”,
“Name”: “XXX”,
“Numbering”: “X”,
}
]

Now I want the collapsed entries within the array to have a label (the “Name” property). Right now it does look like this:

Can I somehow use the default Renderer and tell it to add a label to the collapsed element so I know what is inside?

Thank you for your help.

Best regards

Hi @pbarth,

By default JSON Forms uses the first (order as in the JSON Schema) string-like property of the contained object as a label. To customize this behavior you can use elementLabelProp, see here for the docs.