0.11.3 • Published 5 years ago

dash-devextreme v0.11.3

Weekly downloads
6
License
MIT
Repository
github
Last release
5 years ago

dash-devextreme

PyPI PyPI - Python Version NPM PyPI - License

Wrapper of DevExtreme components for Plotly Dash

Installation

$ pip install dash_devextreme

Usage

import dash
import dash_devextreme as ddx
import dash_html_components as html


data = [
    {'id': 1, 'name': 'Sales', 'text': 'abc'},
    {'id': 2, 'parent_id': 1, 'name': 'Sales 1', 'text': 'abc'},
    {'id': 3, 'parent_id': 1, 'name': 'Sales 2', 'text': 'abc'},
    {'id': 4, 'name': 'Developers', 'text': 'abc'},
    {'id': 5, 'parent_id': 4, 'name': 'Dev 1', 'text': 'abc'},
]

app = dash.Dash('')
app.scripts.config.serve_locally = True

app.layout = html.Div(children=[
    ddx.TreeList(
        dataSource=data,
        columns=[
            {'dataField': 'name', 'width': 290},
            {'dataField': 'text'},
        ],
        keyExpr='id',
        parentIdExpr='parent_id',
        width='100%'
    )
])


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

Dash

Go to this link to learn about Dash.

See the dash-component-boilerplate repo for more information.

License

MIT

0.12.0

3 years ago

0.11.3

5 years ago

0.11.0

5 years ago

0.10.1

5 years ago

0.10.0

5 years ago

0.7.0

5 years ago

0.4.1

5 years ago

0.3.0

6 years ago

0.0.1

6 years ago