react-json-schema-form-extras
react-json-schema-form-extras copied to clipboard
How to use Ui:Field: Table
The docs simply state, "you can use table field without any predefined configurations, it will generate default table schema with columns." I cannot find a single implementation of this, and was wondering does it in fact work currently.
Any update on this? I also can't get the table working :(
This seems to do the trick
// note: No need for { } around the Table
import Table from "react-jsonschema-form-extras/lib/table";
<Form
schema={schema}
uiSchema={uiSchema}
formData={formData}
fields={{ table: Table }}
/>
I get the error "Cannot read properties of undefined (reading 'tableCols')" from that