🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-table-tree

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-table-tree

A react table component which supports render tree structure data.

1.2.0
latest
Source
npm
Version published
Weekly downloads
13
-58.06%
Maintainers
1
Weekly downloads
 
Created
Source

English | 简体中文

intro

  • A react table component which supports render tree structure data.
  • Powered by enable platform team of youzan company.

Demo

  • the table tree is just as follows.

    • table tree image
  • to achieve the above effect, the code is as follows.

    Edit y2jzr46oz1

table props and columns props

  • table props
table propstyperequireddefault
columnsarray[object]true
datasetsarray[object]true
rootIdnumbertrue
rowKeystringfalse'id'
loadingelementfalse
totalobjectfalse
headerobjectfalse
classNamestringfalse''
styleobjectfalse{}
  • column props
column propstyperequireddefault
titlestringtrue
namestringtrue
bodyRendernodefalsedata[name]
  • total props

this property can be set the total row in the last row.

total propstyperequireddefault
visiblebooleanfalsefalse
namestringfalse'合计数据'
  • header props

this property can be set table header fixed, the field of top is the distance to window top. When fixed is true, the feature is open.

header propstyperequireddefault
fixedbooleanfalsefalse
topnumberfalse0

Contributing

  • start the project
  yarn webpack-dev
  • packaging for prod environment
  yarn webpack-prod

Support

  • react 16.3+

development Environment

  • yarn 1.9.4
  • node 8.11.2+

Keywords

table tree

FAQs

Package last updated on 16 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts