react-bootstrap-table-ng 4.18.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +45 -0
- package/package.json +59 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 react-bootstrap-table-ng
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# react-bootstrap-table-ng
|
|
2
|
+
Maintance fork of [`react-bootstrap-table2`] (https://github.com/react-bootstrap-table/react-bootstrap-table2) created by Allen Fang
|
|
3
|
+
|
|
4
|
+
**[Live Demo](https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html)**
|
|
5
|
+
|
|
6
|
+
## Usage
|
|
7
|
+
|
|
8
|
+
### Installation
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npm install react-bootstrap-table-ng --save
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Include CSS
|
|
15
|
+
|
|
16
|
+
> react-bootstrap-table-ng 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
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
// es5
|
|
20
|
+
require('react-bootstrap-table-ng/dist/react-bootstrap-table-ng.min.css');
|
|
21
|
+
|
|
22
|
+
// es6
|
|
23
|
+
import 'react-bootstrap-table-ng/dist/react-bootstrap-table-ng.min.css';
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Your First Table
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
import BootstrapTable from 'react-bootstrap-table-ng';
|
|
30
|
+
|
|
31
|
+
const products = [ ... ];
|
|
32
|
+
const columns = [{
|
|
33
|
+
dataField: 'id',
|
|
34
|
+
text: 'Product ID'
|
|
35
|
+
}, {
|
|
36
|
+
dataField: 'name',
|
|
37
|
+
text: 'Product Name'
|
|
38
|
+
}, {
|
|
39
|
+
dataField: 'price',
|
|
40
|
+
text: 'Product Price'
|
|
41
|
+
}];
|
|
42
|
+
|
|
43
|
+
export default () =>
|
|
44
|
+
<BootstrapTable keyField='id' data={ products } columns={ columns } />
|
|
45
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-bootstrap-table-ng",
|
|
3
|
+
"version": "4.18.0-beta1",
|
|
4
|
+
"description": "Next generation of react-bootstrap-table",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/jeff-k-zhou/react-bootstrap-table-ng.git"
|
|
10
|
+
},
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"react",
|
|
14
|
+
"bootstrap",
|
|
15
|
+
"table",
|
|
16
|
+
"grid",
|
|
17
|
+
"react-component"
|
|
18
|
+
],
|
|
19
|
+
"files": [
|
|
20
|
+
"lib/",
|
|
21
|
+
"dist/"
|
|
22
|
+
],
|
|
23
|
+
"tags": [
|
|
24
|
+
"react"
|
|
25
|
+
],
|
|
26
|
+
"author": "Jeff Zhou",
|
|
27
|
+
"contributors": [
|
|
28
|
+
{
|
|
29
|
+
"name": "Allen Fang",
|
|
30
|
+
"email": "ayu780129@hotmail.com",
|
|
31
|
+
"url": "https://github.com/AllenFang"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "Terrence Miao",
|
|
35
|
+
"email": "terrence.miao@gmail.com",
|
|
36
|
+
"url": "https://github.com/TerrenceMiao"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "Chun-MingChen",
|
|
40
|
+
"email": "nick830314@gmail.com",
|
|
41
|
+
"url": "https://github.com/Chun-MingChen"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"classnames": "^2.5.1",
|
|
46
|
+
"react-transition-group": "^4.4.5",
|
|
47
|
+
"underscore": "^1.13.7"
|
|
48
|
+
},
|
|
49
|
+
"peerDependencies": {
|
|
50
|
+
"classnames": "^2.5.1",
|
|
51
|
+
"prop-types": "^15.8.1",
|
|
52
|
+
"react": "^18.3.1",
|
|
53
|
+
"react-dom": "^18.3.1"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/react-transition-group": "^4.4.12"
|
|
57
|
+
},
|
|
58
|
+
"gitHead": "aaac4c2a5d7afb82d5b77be3fca749a9d69b0614"
|
|
59
|
+
}
|