It's a react table for bootstrap fork from AllenFang and fix dangerouslySetInnerHTML issue (CVE-2021-23398)
npm install react-bootstrap-table-cveFork from https://github.com/react-bootstrap-table/react-bootstrap-table and just for fixing dangerouslySetInnerHTML cve-2021-23398
react-bootstrap-table2 already released, this project will stop development after 2018Q2
[![NPM version][npm-badge]][npm] [![Build Status][travis-ci-image]][travis-ci-url]
[![Dependency Status][deps-badge]][deps]
[![devDependency Status][dev-deps-badge]][dev-deps]
[![peerDependency Status][peer-deps-badge]][peer-deps]
It's a react.js table for bootstrap, named react-bootstrap-table. It's a configurable, functional table component and make you build a Bootstrap Table more efficiency and easy in your React application, However ``react-bootstrap-table` support these features:
- Striped, borderless, condensed table
- Column align, hidden, width, sort, title, styling, customization
- Table scrolling
- Cell format
- Pagination
- Row selection
- Table Search, Column filter
- Cell editor
- Insert & delete Row
- Export to CSV
- Rich function hooks
- Header column span
- Remote mode
- Row expand
- Key board navigation
!Example
See more about react-bootstrap-table and explore more examples on examples folder
Check the CHANGELOG for more detail release notes.
v4.0.0 released, this release mainly replace react-toastr with react-s-alert
1. Replace react-toastr by react-s-alertprop-types
2. Use bootstrap@4
3. Support and bootstrap@3 both. If you use 4, please add version='4' on
4. No important features were implemented, most of bug fixes and improvement
After `v2.4.4`, we move the css files to `dist` folder for allowing this repo can be hosted on cdnjs
react-bootstrap-table` dependencies on react.js and Bootstrap 3, also written by ES6 and use gulp and browserify for building and bundling.You can use the following commands to prepare development
`bash
$ git clone https://github.com/AllenFang/react-bootstrap-table.git
$ cd react-bootstrap-table
$ npm install
`
See the examples for react-bootstrap-table
`bash
$ npm start # see all examples, go to localhost:3004
`Usage
$3
`bash
npm install react-bootstrap-table --save
`$3
To use react-bootstrap-table in your react app, you should import it first.
You can do this in two ways:##### With a module bundler
With a module bundler like webpack that supports either CommonJS or ES2015 modules, use as you would anything else.
You can include source maps on your build system to debug on development. Don't forget to Uglify on production.
`js
// in ECMAScript 6
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
// or in ECMAScript 5
var ReactBSTable = require('react-bootstrap-table');
var BootstrapTable = ReactBSTable.BootstrapTable;
var TableHeaderColumn = ReactBSTable.TableHeaderColumn;
`
##### Browser global(window object)
In the dist folder you have a UMD bundle with source maps (react-bootstrap-table.js) as well as a minified version (react-bootstrap-table.min.js).`html
`The UMD build is also available on npmcdn:
`html
// source maps: https://npmcdn.com/react-bootstrap-table/dist/react-bootstrap-table.js.map
// or use the min version
`$3
Finally, you need to import the css file to your app:
`html
`
The CSS files you can find in the css folder.$3
`js
// products will be presented by react-bootstrap-table
var products = [{
id: 1,
name: "Item name 1",
price: 100
},{
id: 2,
name: "Item name 2",
price: 100
},........];
// It's a data format example.
function priceFormatter(cell, row){
return ' ' + cell;
}React.render(
Product ID
Product Name
Product Price
,
document.getElementById("app")
);
`
$3
The example source codes are in the examples folder folder. Run the following commands for a live demo.
`bash
$ git clone https://github.com/AllenFang/react-bootstrap-table.git
$ cd react-bootstrap-table
$ npm install
$ npm start # after start, open browser and go to http://localhost:3004
``[npm-badge]: http://badge.fury.io/js/react-bootstrap-table.svg
[npm]: http://badge.fury.io/js/react-bootstrap-table
[deps-badge]: https://david-dm.org/AllenFang/react-bootstrap-table.svg
[deps]: https://david-dm.org/AllenFang/react-bootstrap-table
[dev-deps-badge]: https://david-dm.org/AllenFang/react-bootstrap-table/dev-status.svg
[dev-deps]: https://david-dm.org/AllenFang/react-bootstrap-table#info=devDependencies
[peer-deps-badge]: https://david-dm.org/AllenFang/react-bootstrap-table/peer-status.svg
[peer-deps]: https://david-dm.org/AllenFang/react-bootstrap-table#info=peerDependencies
[travis-ci-image]: https://travis-ci.org/AllenFang/react-bootstrap-table.svg
[travis-ci-url]: https://travis-ci.org/AllenFang/react-bootstrap-table