@watchmen/material-ui-data-table

3.0.1 • Public • Published

material-ui-data-table

material-ui table with sorting and pagination goodness

styled with prettier XO code style Build Status npm version

usage

import React from 'react'
import Paper from 'material-ui/Paper'
import DataTable from '@watchmen/material-ui-data-table'

const columns = [
  {id: 'ssn'},
  {id: 'fullName'},
  {id: 'firstName'},
  {id: 'lastName'},
  {id: 'dateOfBirth', label: 'birth date'},
  {id: 'phoneNumber'},
  {id: 'address'},
  {id: 'city'},
  {id: 'state'},
  {id: 'zip'}
]

const results = props => {
  const {page, onSort, onPage} = props

  return (
    <Paper elevation={5}>
      <DataTable columns={columns} page={page} onSort={onSort} onPage={onPage} />
    </Paper>
  )
}

export default results

screen-shot

data-table

credits/dependencies

special thanks to the guys at ultimate-pagination

Readme

Keywords

none

Package Sidebar

Install

npm i @watchmen/material-ui-data-table

Weekly Downloads

2

Version

3.0.1

License

MIT

Unpacked Size

557 kB

Total Files

7

Last publish

Collaborators

  • tony-kerz