Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use Ui:Field: Table #204

Open
wavyjul opened this issue Feb 14, 2022 · 3 comments
Open

How to use Ui:Field: Table #204

wavyjul opened this issue Feb 14, 2022 · 3 comments

Comments

@wavyjul
Copy link

wavyjul commented Feb 14, 2022

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.

@corneliutusnea
Copy link

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

@corneliutusnea
Copy link

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

@mrehder
Copy link

mrehder commented Dec 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants