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

Widget to fill 2-dimensional array of things #56

Open
sverhoeven opened this issue Mar 22, 2022 · 1 comment
Open

Widget to fill 2-dimensional array of things #56

sverhoeven opened this issue Mar 22, 2022 · 1 comment

Comments

@sverhoeven
Copy link
Member

Nested arrays are not rendered very intuitively by rjsf.

rjsf-team github io_react-jsonschema-form_

In PR #53 a table widget was added. It requires an array of objects where the rows are the array items and the columns are the properties of the object.
It would be nice to have an widget which works on an array of arrays of scalar or object. The rows could be the outer array and the columns the inner array. The cell could be the input field for the scalar or a sub-form for the object.

Something like

inner 1 inner 2 inner 3 Add column
outer 1 sub-form
outer 2
Add row

Based on #48 (review)

@sverhoeven sverhoeven changed the title Widget to fill 2-dimenensional array of things Widget to fill 2-dimensional array of things Mar 24, 2022
@sverhoeven
Copy link
Member Author

The alascan module in expert catalog has resdic (List of residues to be mutated) property which is such a format.

i-vresse-workflow-builder netlify app_ (2)

which produces

[alascan]

resdic_A = [
  12,
  13,
  14,
]

Which is not very friendly due to double plust and minus buttons.

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

1 participant