1.0.1 • Published 8 years ago

wh-react-table v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

wh-react-table

React component for a filterable and sortable table.

<Table
  fields={[
    ['ID', i => i.id],
    ['Title', i => i.title]
  ]}
  data={this.state.data}
  filter={(item, value) => ReactDOMServer.renderToStaticMarkup(<Row item={item} />).toUpperCase().indexOf(value.toUpperCase()) > -1}
>
  <Row />
</Table>
1.0.1

8 years ago

1.0.0

8 years ago