react-classic-table
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

React Classic Table

react-classic-table

Classic data viewer table for React

Installation

yarn add react-classic-table

Example

look to /examples folder

Component Properties

Property Type Default Required Description
columns Array <ColumnInfoObject>[] true Columns to show in table
rows Array <object>[] true Rows to list in table
defaultSelectedRows Array <number>[] [] Selected row indexes
onSelectRow Function undefined Function to call when rows are selected: function (index, indexes)

Column Info Object Properties

Property Type Default Required Description
key String true Unique column key
title String true Column title
renderProp String true Property to be render in column
alignment String 'start' ['start', 'center', 'end']
render Function undefined Function to customize the column value: function (value, row)

Package Sidebar

Install

npm i react-classic-table

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

2.35 MB

Total Files

17

Last publish

Collaborators

  • saitergun