0.2.1 • Published 1 year ago

simple-table-react v0.2.1

Weekly downloads
-
License
-
Repository
github
Last release
1 year 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

1 year ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.10

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago