Skip to content

Peter-van-Tol/dash-treeview-antd

 
 

Repository files navigation

Dash TreeView component.

TreeView component for Dash framework. Component is based on Ant Design Tree widget.

Installation

pip install dash_treeview_antd

Usage

See usage.py for exampe of use.

Values

  1. data - tree nodes data.
    {
            "title": "Parent", # node title
            "key": "0", # node id (required to be unique)
            "children": [{
                "title": "Child",
                "key": "0-0",
                "children": [
                    {"title": "Subchild1", "key": "0-0-1"},
                    {"title": "Subchild2", "key": "0-0-2"},
                    {"title": "Subchild3", "key": "0-0-3"},
                ],
    }]}
  2. selected, checked, expanded - keys of selected/checked/expanded nodes.
    ["0", "0-1"]

About

TreeView component for Dash framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 67.1%
  • JavaScript 32.1%
  • HTML 0.8%