holoviz / panel

Panel: The powerful data exploration & web app framework for Python
https://panel.holoviz.org
BSD 3-Clause "New" or "Revised" License
4.69k stars 508 forks source link

Support advanced forms from json schema #1565

Open MarcSkovMadsen opened 4 years ago

MarcSkovMadsen commented 4 years ago

This might be an idea for the future.

But one thing that Panel lacks are easy to create, nice looking forms. For example using the Fast Design system that I have started to implement.

In the Fast Discourse channel I found a recommendation to use react-json-schema-form https://github.com/mozilla-services/react-jsonschema-form. You provide a json definition of the form and get a json response back. Can be used across frameworks like bootstrap, material, Fast (via Fluid UI) etc.

You can read about it here

https://medium.com/@sairamkrish/rapid-development-of-data-collection-platform-with-reactjs-and-json-schema-ef147f4c665

Play around with it here.

https://github.com/rjsf-team/react-jsonschema-form

image

and find the Github site here

https://github.com/rjsf-team/react-jsonschema-form

philippjfr commented 4 years ago

Note that we do have a JSONSchema component in the Monitoring library we've been building. It just uses regular JSON schema and not the JSON schema form extension. Another worthwhile project to look at is this experimental ipywidgets based implementation.

MarcSkovMadsen commented 4 years ago

The important part about the jsonschema I suggested is that i uses material, bootstrap or fluid widgets.