Gathering detailed insights and metrics for react-bootstrap-table
Gathering detailed insights and metrics for react-bootstrap-table
Gathering detailed insights and metrics for react-bootstrap-table
Gathering detailed insights and metrics for react-bootstrap-table
A Bootstrap table built with React.js
npm install react-bootstrap-table
81.8
Supply Chain
78.7
Quality
74.4
Maintenance
95.7
Vulnerability
99.6
License
v4.0.0-beta.9
Published on 31 Jul 2017
v4.0.0-beta.8
Published on 16 Jul 2017
v4.0.0-beta.7
Published on 09 Jul 2017
v4.0.0-beta.6
Published on 11 Jun 2017
v4.0.0-beta.5
Published on 28 May 2017
v4.0.0-beta.4
Published on 13 May 2017
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
2,228 Stars
2,403 Commits
782 Forks
84 Watching
11 Branches
116 Contributors
Updated on 22 Nov 2024
Minified
Minified + Gzipped
JavaScript (96.86%)
CSS (3.14%)
Cumulative downloads
Total Downloads
Last day
-7%
3,788
Compared to previous day
Last week
-9%
18,468
Compared to previous week
Last month
2.4%
85,849
Compared to previous month
Last year
-11.6%
1,035,068
Compared to previous year
4
1
35
react-bootstrap-table2
already released, this project will stop development after 2018Q2
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:
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
react-toastr
by react-s-alert
prop-types
bootstrap@4
and bootstrap@3
both. If you use 4, please add version='4'
on <BootstrapTable>
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
1$ git clone https://github.com/AllenFang/react-bootstrap-table.git 2$ cd react-bootstrap-table 3$ npm install
See the examples for react-bootstrap-table
1$ npm start # see all examples, go to localhost:3004
1npm install react-bootstrap-table --save
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 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.
1// in ECMAScript 6 2import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; 3// or in ECMAScript 5 4var ReactBSTable = require('react-bootstrap-table'); 5var BootstrapTable = ReactBSTable.BootstrapTable; 6var TableHeaderColumn = ReactBSTable.TableHeaderColumn;
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
).
1<script src="path/to/react-bootstrap-table/dist/react-bootstrap-table.min.js" /> 2<script> 3 var ReactBsTable = window.BootstrapTable; 4 //... 5</script>
The UMD build is also available on npmcdn:
1// source maps: https://npmcdn.com/react-bootstrap-table/dist/react-bootstrap-table.js.map 2<script src="https://npmcdn.com/react-bootstrap-table/dist/react-bootstrap-table.js"></script> 3// or use the min version 4<script src="https://npmcdn.com/react-bootstrap-table/dist/react-bootstrap-table.min.js"></script>
Finally, you need to import the css file to your app:
1<!-- we still need bootstrap css --> 2<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> 3<link rel="stylesheet" href="./dist/react-bootstrap-table.min.css">
The CSS files you can find in the css folder.
1// products will be presented by react-bootstrap-table 2var products = [{ 3 id: 1, 4 name: "Item name 1", 5 price: 100 6 },{ 7 id: 2, 8 name: "Item name 2", 9 price: 100 10 },........]; 11// It's a data format example. 12function priceFormatter(cell, row){ 13 return '<i class="glyphicon glyphicon-usd"></i> ' + cell; 14} 15 16React.render( 17 <BootstrapTable data={products} striped={true} hover={true}> 18 <TableHeaderColumn dataField="id" isKey={true} dataAlign="center" dataSort={true}>Product ID</TableHeaderColumn> 19 <TableHeaderColumn dataField="name" dataSort={true}>Product Name</TableHeaderColumn> 20 <TableHeaderColumn dataField="price" dataFormat={priceFormatter}>Product Price</TableHeaderColumn> 21 </BootstrapTable>, 22 document.getElementById("app") 23);
The example source codes are in the examples folder folder. Run the following commands for a live demo.
1$ git clone https://github.com/AllenFang/react-bootstrap-table.git 2$ cd react-bootstrap-table 3$ npm install 4$ npm start # after start, open browser and go to http://localhost:3004
luqin
Help this project to integrate a better examples demo, add travis & badge, code formatting, give a lot of suggestions and bugs report.
Whien
Implement a lots of awesome new feature and also fix some bugs and enhancements.
Parth Prajapati
Help to check issues and give great and useful instructions.
khinlatt
Contribute export csv, multi-search and bug fixing.
dana
Contribute a new colum-filter design and great feedback given.
tbaeg
Bugs report and give some bootstrap and css suggestions actively.
bluedarker
Contribute the edit format & validation on cell editing and row insertion. Improve the custom styling.
Sofia Silva
Bug reports and fixing actively.
frontsideair
Fixing bugs and give improvement for functionality.
aaronhayes
Bugs report and enhance the cell formatting.
Reggino
Implement the TableDataSet component.
The latest stable version of the package.
Stable Version
1
6.1/10
Summary
Cross-site scripting in react-bootstrap-table
Affected Versions
<= 4.3.1
Patched Versions
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/27 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
139 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn Morereact-bootstrap-table-next
Next generation of react-bootstrap-table
@types/react-bootstrap-table-next
TypeScript definitions for react-bootstrap-table-next
@types/react-bootstrap-table
TypeScript definitions for react-bootstrap-table
react-bootstrap-table-next-react18-node20
Next generation of react-bootstrap-table