0.2.1 • Published 2 years ago

simple-table-react v0.2.1

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

Simple Table React

npm Build status codecov Codacy Badge

Demo

How to use

Pass an array of objects (each should contain id) and a list of columns (headers) to DataTable:

<DataTable
  headers={headers}
  data={data}
  actions={Actions}
  handleRowClick={handleClick}
  getCellColor={getCellColor}
  getValue={getCellValue}
/>

DataTable also receives optional functions: handleRowClick, getCellColor and getValue. Component that Actions function returns will be placed at the right of every row.

Styles customisation

Styles can be added to css classses simple-table, simple-table-cell (can be used to style text and border color), simple-table-head and simple-table-row. Note that getCellColor will overwrite text color, so you will need to add !important.

0.2.1

2 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.10

4 years ago

0.0.8

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago