0.0.13 • Published 9 years ago

yb-ui-tree v0.0.13

Weekly downloads
4
License
MIT
Repository
github
Last release
9 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

9 years ago

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

2.4.1

10 years ago

0.0.1

10 years ago