Skip to main content

Dash wrapper for split.js

Project description

dash-split

dash-split is a Dash component library that wraps Split.js so it is easy to use from within python.

Usage

Simple example:

import dash
from dash_split import Split
from dash import html

app = dash.Dash(__name__)

style = {
    "height": "90vh",
    "display": "flex",
    "justifyContent": "center",
    "alignItems": "center"
}

app.layout = html.Div([
    Split(
        id='split',
        children=[
            html.Div(id='1', children="a", style=style),
            html.Div(id='2', children="b", style=style),
            html.Div(id='3', children="c", style=style),
        ],
    )
])

if __name__ == '__main__':
    app.run_server(debug=True)

Also see the Split.js react docs, all relevant props are passed to SplitJS directly from dash.

Contributing

See CONTRIBUTING.md

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_split-0.0.4.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

dash_split-0.0.4-py3-none-any.whl (12.3 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