2.2.3 • Published 5 years ago

react-immutable-table v2.2.3

Weekly downloads
5
License
ISC
Repository
github
Last release
5 years ago

react-immutable-table

React immutable table component

Installation

  1. Install the latest version of react-immutable-table:

    npm install --save react-immutable-table
  2. At this point you can import react-immutable-table in your application as follows:

    import Table from 'react-immutable-table'

Usage

 <Table
    items={items}
    onClick={this.handleClick}
    title = 'React Immutable Table'
    columns={['Id', 'Name']}
    count={items.length}
    onSearch={this.onSearch}
/>

API

Properties

Table

NameTypeDefaultDescription
columnsString[][]The columns titles.
itemsObject[][]Items records array to be rendered.
onClickFunction(rowIndex, colIndex)Handle cell click action.
countIntegerItems count.
onSearchFunction(query)Handle search action.
titleStringThe title of the table.
themeStringThe style of the table.

License

MIT

2.2.3

5 years ago

2.2.2

5 years ago

2.2.1

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.0

5 years ago