Skip to content

Commit

Permalink
merge #89 #71
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Oct 22, 2015
2 parents f819786 + 4166580 commit d2ff3b3
Show file tree
Hide file tree
Showing 50 changed files with 806 additions and 993 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"stage": 0
}
15 changes: 9 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"extends": "airbnb",
"globals": {
"extends": "airbnb",
"globals": {
"__DEV__": true
},
"rules": {
},
"rules": {
"react/jsx-quotes": 0,
"jsx-quotes": [2, "prefer-double"]
}
"jsx-quotes": [
2,
"prefer-double"
]
}
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
node_modules
.DS_Store
*~
*.sublime-project
*.sublime-workspace
*.idea
*.iml
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: node_js
node_js:
- "0.12"

26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# react-bootstrap-table
It's a react.js table for bootstrap, named reactbsTable. 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:

[![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](http://facebook.github.io/react/) table for bootstrap, named reactbsTable. 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:

- column align
- column hidden
Expand Down Expand Up @@ -28,7 +35,7 @@ $ npm install
Use gulp to build the react-bootstrap-table
```
$ gulp dev #for development
$ gulp example-server #see all examples, go to localhost:3004/example-list.html
$ gulp example-server #see all examples, go to localhost:3004
$ gulp prod #for production
```

Expand Down Expand Up @@ -167,3 +174,18 @@ var dataSet = new TableDataSet(products);
```
dataSet.setData(newproducts);
```

[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
81 changes: 16 additions & 65 deletions demo/js/demo.bundle.js

Large diffs are not rendered by default.

91 changes: 21 additions & 70 deletions dist/react-bootstrap-table.min.js

Large diffs are not rendered by default.

56 changes: 0 additions & 56 deletions examples/advance.html

This file was deleted.

43 changes: 0 additions & 43 deletions examples/basic.html

This file was deleted.

61 changes: 0 additions & 61 deletions examples/cell-edit.html

This file was deleted.

34 changes: 0 additions & 34 deletions examples/column-format.html

This file was deleted.

43 changes: 0 additions & 43 deletions examples/column.html

This file was deleted.

30 changes: 0 additions & 30 deletions examples/complex.html

This file was deleted.

22 changes: 0 additions & 22 deletions examples/example-list.html

This file was deleted.

16 changes: 16 additions & 0 deletions examples/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>react-bootstrap-table demo</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>

</head>
<body>
<div id="root"></div>
<script src="../vendors.js"></script>
<script src="../app.bundle.js"></script>
</body>
</html>
1 change: 0 additions & 1 deletion examples/js/advance/auto-rowkey-table.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
import React from 'react';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';

Expand Down
Loading

0 comments on commit d2ff3b3

Please sign in to comment.