I am trying to use custom renderer in my array form, I have gone through the discussion, and found a technique but that is making my array form into a accordion
The schema I am using is
{
type: "object",
properties: {
comments: {
type: "array",
items: {
type: "object",
properties: {
date: {
type: "string",
format: "date",
},
message: {
type: "string",
},
enum: {
type: "string",
enum: ["foo", "bar"],
},
},
},
},
},
};
and uiSchema is
{
type: "VerticalLayout",
elements: [
{
type: "Control",
scope: "#/properties/comments",
options: {
detail: {
type: "VerticalLayout",
elements: [
{
type: "Control",
scope: "#/properties/bnm",
options: {
format: "textArea",
},
},
],
},
},
},
],
};
Help me to modify the schema and uiSchema so that I can easily render any custom components in array JSON forms, also I don’t want to make acccordion out of array, I want to use the default array form. Also I am using options.format : ‘accordion’, as my tested to render custom components.