1.0.17 • Published 5 years ago

paged-table v1.0.17

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

paged-table

A simple way to display data on a table.

NPM JavaScript Style Guide

Whats possible

npm.io npm.io

Install

npm install --save paged-table

Basic Usage

import * as React from 'react'

import SimpleTable from 'paged-table'

class Example extends React.Component {
  columns = [{ key: "id", displayName: "User Id", headerStyle: { width: '10px' }, sortable: false },
  { key: "name", displayName: "Name" },
  { key: "status", displayName: "Status" },
  {
    key: "createdOn", displayName: "Created On", formatter: (value) => {
      return value.toLocaleString()
    }
  }]

  data = [{id: 1, name: 'Nicholas Mata', status: 'Active', createdOn: new Date()}, 
         {id: 2, name: 'Jane Doe', status: 'Active', createdOn: new Date()}]

  render () {
    return (
      <SimpleTable
        clickable
        bordered
        columns={this.columns}
        data={this.data}
      />
    )
  }
}

Advanced Usage

Coming Soon - Look at example for now.

License

MIT © NicholasMata

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago