Wrapper of DevExtreme components for Plotly Dash
Project description
dash-devextreme
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dash_devextreme-0.16.6.tar.gz
(11.9 MB
view details)
File details
Details for the file dash_devextreme-0.16.6.tar.gz
.
File metadata
- Download URL: dash_devextreme-0.16.6.tar.gz
- Upload date:
- Size: 11.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4f22007a42e0c103a7c3d5488fa533d7862c1fdc99cf7064d400525614c5035 |
|
MD5 | c9f0fe7961322e77cd799e885af672bc |
|
BLAKE2b-256 | 60c636e0c79673862af5b6e85889f2a4c0adeb7a2900a2c005be4ed7dceb7d54 |