Skip to content

Detaysoft/react-tree-schema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-tree-schema

Tree component for React.js apps.

image (1)

Install

npm install react-tree-schema

Architecture

image (1)

Components

Root Component

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

const Tree = () => (
  <Root childNodes={[
    { 
      name: 'React Team',
      opened: true ,
      childNodes: [
        { 
          name: 'Team Leader', 
          childNodes: [
            { name: 'Abdurrahman EKER' },
          ]
        },
        {
          name: 'Developers', 
          childNodes: [
            { name: 'Kübra TURAN' },
            { name: 'Reyhan ÜNAL' },
            { name: 'Osman PEKAYDIN' },
          ]
        },
      ]
    }
  ]}/>
)

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published