Hey there,
I have a component, which gives the option to make a collapsable section.
const CollapsableGroupRenderer = (props: LayoutProps) => {
const { uischema, schema, path, visible, renderers } = props;
const layout = uischema as Layout;
const layoutProps: MaterialLayoutRendererProps = {
elements: layout.elements,
schema: schema,
path: path,
direction: uischema.type === "HorizontalLayout" ? "row" : "column",
visible: visible,
uischema: uischema,
renderers: renderers,
};
const label = "label" in layout ? (layout.label as string) : "";
return (
<Hidden xsUp={!visible}>
<Accordion style={{ marginBottom: "10px" }}>
<AccordionSummary expandIcon={<ExpandMoreIcon />}>
<Typography>{label}</Typography>
</AccordionSummary>
<AccordionDetails>
<MaterialLayoutRenderer {...layoutProps} />
</AccordionDetails>
</Accordion>
</Hidden>
);
};
Now I have the problem, that I can’t see if there is an error inside the collapsed accordion. Is there any way to get the error array from the content?
Thanks in advance