Dash component based on the react-jsonschema-form
Project description
Dash component to make input forms from json schema
Usage
import dash_rjsf
import dash
from dash.dependencies import Input, Output
import dash_html_components as html
app = dash.Dash(__name__)
schema = {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Hello form",
"description": "Demo hello form",
"type": "object",
"properties": {
"hello": { "type": "string", "description": "hello value"}
}
}
app.layout = html.Div([
dash_rjsf.DashRjsf(
id='input',
schema=schema,
),
html.Div(id='output')
])
@app.callback(Output('output', 'children'), [Input('input', 'value')])
def display_output(value):
return 'You have entered {}'.format(value)
if __name__ == '__main__':
app.run_server(debug=True)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dash_rjsf-0.0.2.tar.gz
(87.7 kB
view hashes)
Built Distribution
dash_rjsf-0.0.2-py3-none-any.whl
(88.5 kB
view hashes)
Close
Hashes for dash_rjsf-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa81ba99f94182cf258996418ba50a40bbf2b0f0385f1901d46ebedb9d5046c7 |
|
MD5 | 81b27d9b357cea1f7de1601d6ecdc788 |
|
BLAKE2b-256 | 7fb4b86ced5764ec0f49397f8db1d705c76b9b0cae3bc508e540cd96b9802bd5 |