0.0.13 • Published 8 years ago

yb-ui-tree v0.0.13

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

react-ui-tree

React tree component

This project is a fork of gqx react-ui-tree. It uses the basis of that component but removes the drag and drop functionality to better interact with a react dnd container.

build requires babel 6.x
### Installation
``` sh
npm install https://github.com/mockeryjones/yb-ui-tree.git --save

Usage

<Tree
  paddingLeft={20}              // left padding for children nodes in pixels
  tree={this.state.tree}        // tree object
  onChange={this.handleChange}  // onChange(tree) tree object changed
  renderNode={this.renderNode}  // renderNode(node) return react element
/>

// a sample tree object
// node.children, node.collapsed, node.leaf properties are hardcoded
{
  "module": "react-ui-tree",
  "children": [{
    "collapsed": true,
    "module": "dist",
    "children": [{
      "module": "node.js"
    }]
  }]
}

License

MIT

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

2.4.1

8 years ago

0.0.1

8 years ago