react-json-schema-form-extras
react-json-schema-form-extras copied to clipboard
Dynamic title for Collapsible
Do you plan support for dynamic titles for collapsible fields of array types ? For example title could be one of the property of array item:
items.title = items.properties.title.value
For now it only shows same title for all items "itemsTitle" and so it is not so readable in collapsed state
const schema = {
type: "object",
properties: {
arrayField:{
type: "array",
items: {
type: "object",
title: "itemsTitle",
properties: {
title: { type: "string" },
number: { type: "number" }
}
}
}
}
}
const uiSchema = {
arrayField: {
items: {
"ui:field": "collapsible",
collapse: {
field: "ObjectField"
}
}
}
}
I would also like to use this feature - is there anyway to accomplish this?
I am also looking to dynamically label collapsible field titles. Any suggestings would be greatly appreciated.
Any Solution I am looking for this too?
Any Solution I am looking for this too?
No, not that I am aware of.