An open API service indexing awesome lists of open source software.

https://github.com/detaysoft/react-tree-schema

React.js ile yazılmış tree yapısı
https://github.com/detaysoft/react-tree-schema

Last synced: 12 months ago
JSON representation

React.js ile yazılmış tree yapısı

Awesome Lists containing this project

README

          

# react-tree-schema
Tree component for React.js apps.

![image (1)](demo.gif)
# Install

```javascript

npm install react-tree-schema

```
# Architecture
![image (1)](https://user-images.githubusercontent.com/30048977/56694176-cd0de400-66ee-11e9-9984-6ef9846e7090.png)

# Components

## Root Component

```javascript
import React from 'react'
import Root from 'react-tree-schema'

const Tree = () => (

)
```
#### Root props
| prop | default | type | description |
| ---- | ---- | ---- | ---- |
| name | none | string | Node title |
| childNodes | none | array | Node items |
| opened | false | boolean | visible nodes of the noden |
| icon | none | object | icon of node |
| onClick | none | function | Node on click |
| onContextMenu | none | function | Node on context menu |

### Child Node Item
| prop | default | type | description |
| ---- | ---- | ---- | ---- |
| name | none | string | Node title |
| childNodes | none | array | Node items |
| opened | false | boolean | visible nodes of the noden |
| icon | none | object | icon of node |
| onClick | none | function | Node on click |
| onContextMenu | none | function | Node on context menu |