Miss any of our Open RFC calls?Watch the recordings here! »

react-bootstrap-table-next

4.0.3 • Public • Published

react-bootstrap-table-next

Next generation of react-bootstrap-table

Usage

Installation

npm install react-bootstrap-table-next --save

Include CSS

react-bootstrap-table2 need you to add bootstrap css in your application firstly. About bootstrap css, we only compatible with bootstrap 3 but will start to compatible for bootstrap 4 on v0.2.0

// es5 
require('react-bootstrap-table-next/dist/react-bootstrap-table2.min.css');
 
// es6
import 'react-bootstrap-table-next/dist/react-bootstrap-table2.min.css';

Your First Table

import BootstrapTable from 'react-bootstrap-table-next';
 
const products = [ ... ];
const columns = [{
  dataField: 'id',
  text: 'Product ID'
}, {
  dataField: 'name',
  text: 'Product Name'
}, {
  dataField: 'price',
  text: 'Product Price'
}];
 
export default () =>
  <BootstrapTable keyField='id' data={ products } columns={ columns } />

Install

npm i react-bootstrap-table-next

DownloadsWeekly Downloads

46,712

Version

4.0.3

License

MIT

Unpacked Size

1.15 MB

Total Files

56

Last publish

Collaborators

  • avatar