react-json-schema-form-extras icon indicating copy to clipboard operation
react-json-schema-form-extras copied to clipboard

How to use Ui:Field: Table

Open wavyjul opened this issue 3 years ago • 3 comments

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.

wavyjul avatar Feb 14 '22 21:02 wavyjul

Any update on this? I also can't get the table working :(

corneliutusnea avatar May 13 '22 02:05 corneliutusnea

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 }} 
  />

corneliutusnea avatar May 13 '22 03:05 corneliutusnea

I get the error "Cannot read properties of undefined (reading 'tableCols')" from that

mrehder avatar Dec 07 '22 15:12 mrehder