3.0.1 • Published 7 years ago

@watchmen/material-ui-data-table v3.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

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

3.0.1

7 years ago

3.0.0

7 years ago

2.2.0

7 years ago

2.1.0

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.2.0

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago