Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
4d6ad8d
init for starting develop
AllenFang Aug 19, 2017
23cb0fd
[develop] environment setup for testing (#4)
chunming-c Aug 19, 2017
5b7a891
Bootstrap table base (#8)
AllenFang Aug 20, 2017
6b7d1f9
Allen/feature 9 (#10)
AllenFang Aug 20, 2017
7c424a2
Implement column formatter (#13)
AllenFang Aug 20, 2017
1e32ea2
Support nested data (#15)
AllenFang Aug 20, 2017
f62d4b1
CI environment setup (#16)
chunming-c Aug 20, 2017
1c07b6c
Implement custom style/class on cell (#20)
AllenFang Aug 22, 2017
20bb9c0
Implement column title (#22)
AllenFang Aug 26, 2017
95ca444
add event hooks on column (#25)
AllenFang Aug 26, 2017
b2bd0fc
implement align on header & body cell (#27)
AllenFang Aug 26, 2017
b00007c
fix #26
AllenFang Aug 26, 2017
4da199f
fix #29
AllenFang Aug 26, 2017
ee6afcb
fix #17
chunming-c Aug 27, 2017
507e554
fix #11
AllenFang Aug 27, 2017
c09bf7c
enhance storybook
chunming-c Aug 28, 2017
60d4e7e
fix #34
AllenFang Sep 2, 2017
6f45ae7
fix #31
AllenFang Sep 2, 2017
47e8076
refine the relation for props resolver and internal store
AllenFang Sep 2, 2017
9f9f78e
fix #40
AllenFang Sep 2, 2017
67c37e9
fix #18
chunming-c Sep 2, 2017
82b8275
Enhancement/code prettify (#46)
chunming-c Sep 3, 2017
ae5c677
Implement stateful layer (#48)
AllenFang Sep 3, 2017
f9ccbd0
examples enhance
chunming-c Sep 4, 2017
9199484
setup enhancement
chunming-c Sep 9, 2017
79fb252
fix #51
chunming-c Sep 12, 2017
ec1a927
fix #56
chunming-c Sep 16, 2017
2e10cb1
fix #47
AllenFang Sep 16, 2017
f6eea2f
fix #60
AllenFang Sep 20, 2017
ba7c2e9
Allow focus on the last character in Text Input (#65)
khaninD Sep 23, 2017
9f92b53
fix #63 (part1 - cell editing validation)
AllenFang Sep 23, 2017
c2e22d5
Improve development setup experience by fixing misspelled areas
thevangelist Oct 7, 2017
94d21fe
fix #66
khaninD Oct 10, 2017
7760d6a
refine #71
AllenFang Oct 10, 2017
3d6a293
fix #77
thevangelist Oct 10, 2017
105bd36
refine #78
AllenFang Oct 10, 2017
30d2645
Improve yarn install for travis
chunming-c Oct 11, 2017
8772591
fix #50
chunming-c Oct 11, 2017
7a5b88b
fix #63
AllenFang Oct 17, 2017
bc67dfc
Refine the code base for cell edit
AllenFang Oct 17, 2017
6887c12
no need BootstrapTableful anymore
AllenFang Oct 17, 2017
0ca6335
refine row selection to wrapper
AllenFang Oct 17, 2017
f52baa4
refine sort logic to wrapper
AllenFang Oct 17, 2017
4f7a3d7
refine row selection
AllenFang Oct 18, 2017
0440c63
always jsx-curly-spacing
AllenFang Oct 18, 2017
afef2ad
add missing HeaderCell.propTypes
AllenFang Oct 18, 2017
cb6410b
fix #101
AllenFang Oct 18, 2017
10f06dc
fix #104
AllenFang Oct 20, 2017
afc4187
fix #106
AllenFang Oct 20, 2017
b16da90
fix #108
AllenFang Oct 23, 2017
bbeb122
fix wrong higher order wrapping (#112)
AllenFang Oct 24, 2017
985a171
fix #111
AllenFang Oct 26, 2017
cf142d3
Improve CONTRIBUTING doc
konekoya Oct 26, 2017
974f129
fix #116
AllenFang Oct 26, 2017
ca02af3
logs messages on the story panel (#123)
chunming-c Oct 29, 2017
ab305a7
fix #119
AllenFang Oct 29, 2017
e1e8c00
fix #64
AllenFang Oct 29, 2017
19dc4d3
fix #129
AllenFang Oct 29, 2017
6110663
fix #128
AllenFang Oct 30, 2017
316b4e5
fix #133
AllenFang Oct 30, 2017
79a81e8
Bugfix/row selection (#131)
chunming-c Nov 5, 2017
3c88364
fix #135
AllenFang Nov 19, 2017
47f86df
patch docs for pagination (#139)
AllenFang Nov 19, 2017
f9abcf4
implement remote pagination
AllenFang Dec 2, 2017
28f1bdb
patch tests for remote pagination
AllenFang Dec 2, 2017
d43b3d6
add story remote pagination
AllenFang Dec 2, 2017
dfc0e15
fix #140
AllenFang Dec 2, 2017
dc096a6
implement loading overlay
AllenFang Dec 3, 2017
7030361
add stories for loading overlay
AllenFang Dec 3, 2017
fab06bf
patch docs for remote
AllenFang Dec 3, 2017
a363764
patch docs for overlay
AllenFang Dec 3, 2017
32b187f
no --pure-lockfile --ignore-scripts
AllenFang Dec 3, 2017
ff31b2f
fix #144
AllenFang Dec 3, 2017
574a314
funcaitonal store (#146)
AllenFang Dec 9, 2017
00f1105
Development/sorted classes and style (#136)
chunming-c Dec 10, 2017
4d04b75
fix wrong HOC for SortWrapper (#148)
AllenFang Dec 10, 2017
da907d4
fix liftcycle issue (#149)
AllenFang Dec 10, 2017
48004e1
patch for pagination document
chunming-c Dec 10, 2017
861809d
render filter in bootstrap table
AllenFang Dec 13, 2017
472f5d8
layout and wording beautify
chunming-c Dec 16, 2017
1879d77
Merge pull request #150 from react-bootstrap-table/document-pagination
AllenFang Dec 16, 2017
7016e55
implement filter
AllenFang Dec 13, 2017
297c5ad
fix pagination bug
AllenFang Dec 13, 2017
ba93a6c
All the downstream wrapper for filter wrapper should checking props.i…
AllenFang Dec 13, 2017
00185b8
add react-bootstrap-table2-filter
AllenFang Dec 13, 2017
c01db26
add story for text filter
AllenFang Dec 13, 2017
ad98cfe
implement column.filterValue
AllenFang Dec 16, 2017
51ef91b
add story for column.filterValue
AllenFang Dec 16, 2017
024dcf8
add some stories for text filter
AllenFang Dec 16, 2017
867465c
fix typo
AllenFang Dec 23, 2017
64b3710
docs for column filter
AllenFang Dec 23, 2017
80b1ac3
fix #147
AllenFang Dec 23, 2017
5cbeae7
Fix #154
AllenFang Dec 23, 2017
e14c596
refine remote examples
AllenFang Dec 24, 2017
c4eb2f8
refine remote mode on filter and pagination
AllenFang Dec 24, 2017
2fbc84e
pathc docs for remote mode
AllenFang Dec 24, 2017
90bea38
Merge pull request #156 refine remote filter and pagination
AllenFang Dec 24, 2017
4c89f91
implement remote resolver
AllenFang Dec 24, 2017
3bfeec7
fix bug for onTableChange argument change
AllenFang Dec 25, 2017
fb81595
refactoring wrapper mechanism
AllenFang Dec 25, 2017
bdfc4eb
Merge pull request #158 from react-bootstrap-table/enhance/refactoring
AllenFang Dec 25, 2017
01337f5
implement remote sorting
AllenFang Dec 27, 2017
fcf7800
fix #152
AllenFang Dec 28, 2017
a50a124
refine remote cell edit
AllenFang Jan 4, 2018
beafef9
patch tests for refining remote cell edit
AllenFang Jan 4, 2018
d5f7ae5
refined docs for remote cell edit
AllenFang Jan 4, 2018
6913434
fix #161
AllenFang Jan 6, 2018
19cca12
add dependency rimraf
chunming-c Dec 24, 2017
6e4ca34
add dependency git-directory-deploy
chunming-c Dec 24, 2017
cb1041b
auto release for storybook
chunming-c Dec 24, 2017
383cfba
add package babel-cli
chunming-c Dec 24, 2017
a37ef68
compile with babel
chunming-c Dec 24, 2017
3649f83
select lerna-changelog to generate change log
chunming-c Jan 1, 2018
39be018
move cell edit logic to react-bootstrap-table2-editor
AllenFang Jan 6, 2018
21344ec
refine cell edit stories
AllenFang Jan 6, 2018
9428f2d
refine cell edit tests
AllenFang Jan 7, 2018
e46d837
fix EditingCell liftcycle bug
AllenFang Jan 7, 2018
618346b
patch docs for cell edit
AllenFang Jan 7, 2018
55fe007
Merge pull request #165 from react-bootstrap-table/enhance/cell-edit-…
AllenFang Jan 7, 2018
6c0fc4f
Merge branch 'prod-setup' of https://github.com/Chun-MingChen/react-b…
AllenFang Jan 14, 2018
be4211b
no publish to gh-pages
AllenFang Jan 14, 2018
afc742c
no babel-cli build per repo
AllenFang Jan 14, 2018
3a8390c
react-bootstrap-table2-example depend other packages via webpack reso…
AllenFang Jan 14, 2018
ec705f2
umd build
AllenFang Jan 14, 2018
4bd7305
babel build
AllenFang Jan 15, 2018
5d0b0af
build sass
AllenFang Jan 16, 2018
41d76a0
gulp build for style, scripts and umd
AllenFang Jan 18, 2018
a9dd05d
fix entry point changed
AllenFang Jan 18, 2018
1cedea5
remove lerna-changelog
AllenFang Jan 18, 2018
2824039
Merge pull request #167 from react-bootstrap-table/Chun-MingChen-prod…
AllenFang Jan 18, 2018
0d3b76b
README.md
AllenFang Jan 20, 2018
42339b7
tweak package.json
AllenFang Jan 20, 2018
1ef006e
add README.md
AllenFang Jan 20, 2018
9b3abac
react-bootstrap-table2 -> react-bootstrap-table-next
AllenFang Jan 20, 2018
50a5bd3
refine file name
AllenFang Jan 20, 2018
b4f7028
no publish
AllenFang Jan 20, 2018
5f7c55a
drop start scripts
AllenFang Jan 20, 2018
b2e6bf9
tweak pagination factory name
AllenFang Jan 20, 2018
a556bd2
Publish
AllenFang Jan 21, 2018
659f2e2
upgrade lerna
AllenFang Jan 21, 2018
51e0cc9
README.md
AllenFang Jan 21, 2018
79d5a51
tweak package.json
AllenFang Jan 21, 2018
a2d082b
due to container will always set source data via store.setAllData so …
AllenFang Jan 21, 2018
2263282
tweak storybook webpack
AllenFang Jan 21, 2018
045ca4a
fix bug when remote pagination have same filter conds but change page…
AllenFang Jan 21, 2018
85f1eba
tweak stories
AllenFang Jan 21, 2018
d84b614
tweak README.md
AllenFang Jan 21, 2018
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add README.md
  • Loading branch information
AllenFang committed Jan 20, 2018
commit 1ef006e4c2909594040dcc264e6fb89469eb76b0
59 changes: 59 additions & 0 deletions packages/react-bootstrap-table2-editor/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# react-bootstrap-table2-editor

`react-bootstrap-table2` separate the cell edit code base to [`react-bootstrap-table2-editor`](https://github.com/react-bootstrap-table/react-bootstrap-table2/tree/develop/packages/react-bootstrap-table2-editor), so there's a little bit different when you use cell edit than `react-bootstrap-table`. In the following, we are going to show you how to enable the cell edit

**[Live Demo For Cell Edit](https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html?selectedKind=Cell%20Editing)**

-----

## Install

```sh
$ npm install react-bootstrap-table2-editor --save
```

## How

We have [two ways](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/cell-edit-props.html#celleditmode-string) to trigger a editable cell as editing cell:

* click
* dbclick

That's look into how we enable the cell edit on tabe:

```js
import cellEditFactory from 'react-bootstrap-table2-editor';

// omit

<BootstrapTable
keyField="id"
data={ products }
columns={ columns }
cellEdit={ cellEditFactory({ mode: 'click' }) }
/>
```

How user save their new editings? We offer two ways:

* Press ENTER(**default**)
* Blur from current editing cell(Need to enable the [cellEdit.blurToSave](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/cell-edit-props.html#celleditblurtosave-bool))

## Editable Cell
`react-bootstrap-table2` support you to configure the cell editable on three level:

* Row Level ([cellEdit.nonEditableRows](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/cell-edit-props.html#celleditnoneditablerows-function))
* Column Level (Configure [column.editable](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/column-props.html#columneditable-bool-function) as bool value)
* Cell Level (Configure [column.editable](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/column-props.html#columneditable-bool-function) as a callback function)

## Customize Style/Class
Currently, we only support the editing cell style/class customization, in the future, we will offer more customizations.

### Editing Cell

* Customize the editing cell style via [column.editCellStyle](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/column-props.html#columneditcellstyle-object-function)
* Customize the editing cell classname via [column.editCellClasses](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/column-props.html#columneditcellclasses-string-function)

## Validation

[`column.validator`](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/column-props.html#columnvalidator-function) will help you to work on it!
35 changes: 24 additions & 11 deletions packages/react-bootstrap-table2-filter/README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
# react-bootstrap-table2-filter

## Filters
`react-bootstrap-table2` separate the filter core code base to [`react-bootstrap-table2-filter`](https://github.com/react-bootstrap-table/react-bootstrap-table2/tree/develop/packages/react-bootstrap-table2-filter), so there's a little bit different when you use column filter than `react-bootstrap-table`. In the following, we are going to show you how to enable the column filter:

* Text (`textFilter`)
**[Live Demo For Column Filter](https://github.com/react-bootstrap-table/react-bootstrap-table2/blob/gh-pages-src/storybook/index.html?selectedKind=Column%20Filter)**

You can get all of above filters via import and these filters are a factory function to create a individual filter instance.
In addition, for some simple customization reasons, these factory function allow to pass some props.
-----

### Text Filter
## Install

```sh
$ npm install react-bootstrap-table2-filter --save
```

You can get all types of filters via import and these filters are a factory function to create a individual filter instance. Currently, we support following filters:

* TextFilter
* **Coming soon!**

## Text Filter
Following is a quick demo for enable the column filter on **Product Price** column!!

```js
import filterFactory, { textFilter } from 'react-bootstrap-table2-filter';
Expand All @@ -23,18 +34,20 @@ const columns = [
<BootstrapTable keyField='id' data={ products } columns={ columns } filter={ filterFactory() } />
```

Following we list all the availabe props for `textFilter` function:
In addition, we preserve all of the filter features and functionality in legacy `react-bootstrap-table`, but in different way to do it:

```js
import { Comparator } from 'react-bootstrap-table2-filter';
import filterFactory, { textFilter, Comparator } from 'react-bootstrap-table2-filter';
// omit...

const customTextFilter = textFilter({
const priceFilter = textFilter({
placeholder: 'My Custom PlaceHolder', // custom the input placeholder
style: { ... }, // your custom styles on input
className: 'my-custom-text-filter', // custom classname on input
defaultValue: 'test', // default filtering value
delay: 1000, // how long will trigger filtering after user typing, default is 500 ms
comparator: Comparator.EQ // default is Comparator.LIKE
comparator: Comparator.EQ, // default is Comparator.LIKE
style: { ... }, // your custom styles on input
delay: 1000 // how long will trigger filtering after user typing, default is 500 ms
});

// omit...
```
14 changes: 14 additions & 0 deletions packages/react-bootstrap-table2-overlay/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# react-bootstrap-table2-overlay
In `react-bootstrap-table2`, you will be easier to custom the loading or lverlay on table no matter if remote enabled or not. In the following, we have two way to do it:

-----

## Empty Table
[**`noDataIndication`**](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/table-props.html#nodataindication-function) is a simple case you can take it, if current data size is empty, `react-bootstrap-table2` will call the `noDataIndication` prop and get the result to display on the table.

[**Here**](https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html?selectedKind=EmptyTableOverlay) is a quick exmaple for `noDataIndication`.

## Loading Table
In the most of case for remote mode, you need the loading animation to tell the user the table is loading or doing some action in the background. Hence, you can lervarge [**`overlay`**](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/table-props.html#overlay-function) prop.

[**Here**](https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html?selectedKind=EmptyTableOverlay) is also a example for `overlay`
28 changes: 28 additions & 0 deletions packages/react-bootstrap-table2-paginator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# react-bootstrap-table2-pagination

`react-bootstrap-table2` separate the pagination code base to [`react-bootstrap-table2-pagination`](https://github.com/react-bootstrap-table/react-bootstrap-table2/tree/develop/packages/react-bootstrap-table2-paginator), so there's a little bit different when you use pagination. In the following, we are going to show you how to enable and configure the a pagination table

**[Live Demo For Pagination](https://react-bootstrap-table.github.io/react-bootstrap-table2/storybook/index.html?selectedKind=Pagination)**

-----

## Install

```sh
$ npm install react-bootstrap-table2-pagination --save
```

## How

Let's enable a pagination on your table:

```js
import paginator from 'react-bootstrap-table2-paginator';
// omit...

<BootstrapTable keyField='id' data={ products } columns={ columns } pagination={ paginator() } />
```

## Customization

See [pagination props](https://react-bootstrap-table.github.io/react-bootstrap-table2/docs/pagination-props.html)
43 changes: 43 additions & 0 deletions packages/react-bootstrap-table2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# react-bootstrap-table-next
Next generation of [`react-bootstrap-table`](https://github.com/AllenFang/react-bootstrap-table)

## Usage

### Installation

```sh
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

```js
// 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

```js
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 } />
```