Skip to main content

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.4.tar.gz (87.8 kB view hashes)

Uploaded Source

Built Distribution

dash_rjsf-0.0.4-py3-none-any.whl (88.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page