mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
20190209 release
This commit is contained in:
parent
e283f52fc6
commit
2ac566392b
@ -89,7 +89,7 @@ const columns = [{
|
||||
* export `filter` function to allow users to access. For textFilter, `filter(value)` to filter columns dynamically.
|
||||
|
||||
### textFilter.onFilter - [Function]
|
||||
* Register a listener which will be called when column filter being triggered.
|
||||
* Register a listener which will be called when column filter being triggered. If you return an array value, `react-bootstrap-table2` will adopt this value as final filted result.
|
||||
|
||||
**Example**
|
||||
```js
|
||||
@ -153,7 +153,7 @@ const columns = [{
|
||||
* export `filter` function to allow users to access. For selectFilter, `filter(value)` to filter columns dynamically.
|
||||
|
||||
### selectFilter.onFilter - [Function]
|
||||
* Register a listener which will be called when column filter being triggered.
|
||||
* Register a listener which will be called when column filter being triggered. If you return an array value, `react-bootstrap-table2` will adopt this value as final filted result.
|
||||
|
||||
**Example**
|
||||
```js
|
||||
@ -217,7 +217,7 @@ const columns = [
|
||||
* export `filter` function to allow users to access. For multiSelectFilter, `filter(value)` to filter columns dynamically.
|
||||
|
||||
### multiSelectFilter.onFilter - [Function]
|
||||
* Register a listener which will be called when column filter being triggered.
|
||||
* Register a listener which will be called when column filter being triggered. If you return an array value, `react-bootstrap-table2` will adopt this value as final filted result.
|
||||
|
||||
**Example**
|
||||
```js
|
||||
@ -304,7 +304,7 @@ const columns = [
|
||||
* export `filter` function to allow users to access. For numberFilter,<br>`filter({ number, comparator })` to filter columns dynamically.
|
||||
|
||||
### numberFilter.onFilter - [Function]
|
||||
* Register a listener which will be called when column filter being triggered.
|
||||
* Register a listener which will be called when column filter being triggered. If you return an array value, `react-bootstrap-table2` will adopt this value as final filted result.
|
||||
|
||||
**Example**:
|
||||
```js
|
||||
@ -384,7 +384,7 @@ const columns = [{ ... }, { ... }, {
|
||||
* export `filter` function to allow users to access. For dateFilter,<br>`filter({ date, comparator })` to filter columns dynamically.
|
||||
|
||||
### dateFilter.onFilter - [Function]
|
||||
* Register a listener which will be called when column filter being triggered.
|
||||
* Register a listener which will be called when column filter being triggered. If you return an array value, `react-bootstrap-table2` will adopt this value as final filted result.
|
||||
|
||||
**Example**:
|
||||
```js
|
||||
|
||||
@ -8,32 +8,37 @@ title: BootstrapTable Props
|
||||
* [columns (**required**)](#columns-required-object)
|
||||
|
||||
## Optional
|
||||
* [remote](#remote-bool-object)
|
||||
* [bootstrap4](#bootstrap4-bool)
|
||||
* [noDataIndication](#nodataindication-function)
|
||||
* [loading](#loading-bool)
|
||||
* [overlay](#overlay-function)
|
||||
* [caption](#caption-string-node)
|
||||
* [striped](#striped-bool)
|
||||
* [bordered](#bordered-bool)
|
||||
* [hover](#hover-bool)
|
||||
* [condensed](#condensed-bool)
|
||||
* [id](#id-string)
|
||||
* [tabIndexCell](#tabindexcell-bool)
|
||||
* [classes](#classes-string)
|
||||
* [wrapperClasses](#wrapperClasses-string)
|
||||
* [headerClasses](#headerClasses-string)
|
||||
* [cellEdit](#celledit-object)
|
||||
* [selectRow](#selectrow-object)
|
||||
* [rowStyle](#rowstyle-object-function)
|
||||
* [rowClasses](#rowclasses-string-function)
|
||||
* [rowEvents](#rowevents-object)
|
||||
* [hiddenRows](#hiddenrows-array)
|
||||
* [defaultSorted](#defaultsorted-array)
|
||||
* [defaultSortDirection](#defaultSortDirection-string)
|
||||
* [pagination](#pagination-object)
|
||||
* [filter](#filter-object)
|
||||
* [onTableChange](#ontablechange-function)
|
||||
- [Required](#required)
|
||||
- [Optional](#optional)
|
||||
- [keyField(**required**) - [String]](#keyfieldrequired---string)
|
||||
- [data(**required**) - [Array]](#datarequired---array)
|
||||
- [columns(**required**) - [Object]](#columnsrequired---object)
|
||||
- [remote - [Bool | Object]](#remote---bool--object)
|
||||
- [bootstrap4 - [Bool]](#bootstrap4---bool)
|
||||
- [noDataIndication - [Function]](#nodataindication---function)
|
||||
- [loading - [Bool]](#loading---bool)
|
||||
- [overlay - [Function]](#overlay---function)
|
||||
- [caption - [String | Node]](#caption---string--node)
|
||||
- [striped - [Bool]](#striped---bool)
|
||||
- [bordered - [Bool]](#bordered---bool)
|
||||
- [hover - [Bool]](#hover---bool)
|
||||
- [condensed - [Bool]](#condensed---bool)
|
||||
- [id - [String]](#id---string)
|
||||
- [tabIndexCell - [Bool]](#tabindexcell---bool)
|
||||
- [classes - [String]](#classes---string)
|
||||
- [wrapperClasses - [String]](#wrapperclasses---string)
|
||||
- [headerClasses - [String]](#headerclasses---string)
|
||||
- [cellEdit - [Object]](#celledit---object)
|
||||
- [selectRow - [Object]](#selectrow---object)
|
||||
- [rowStyle - [Object | Function]](#rowstyle---object--function)
|
||||
- [rowClasses - [String | Function]](#rowclasses---string--function)
|
||||
- [rowEvents - [Object]](#rowevents---object)
|
||||
- [hiddenRows - [Array]](#hiddenrows---array)
|
||||
- [defaultSorted - [Array]](#defaultsorted---array)
|
||||
- [defaultSortDirection - [String]](#defaultsortdirection---string)
|
||||
- [pagination - [Object]](#pagination---object)
|
||||
- [filter - [Object]](#filter---object)
|
||||
- [onTableChange - [Function]](#ontablechange---function)
|
||||
|
||||
-----
|
||||
|
||||
@ -54,13 +59,13 @@ For flexibility reason, you can control what functionality should be handled on
|
||||
```js
|
||||
remote={ {
|
||||
filter: true,
|
||||
pagination: true,
|
||||
sort: true,
|
||||
cellEdit: true
|
||||
pagination: false,
|
||||
sort: false,
|
||||
cellEdit: false
|
||||
} }
|
||||
```
|
||||
|
||||
In above case, only column filter will be handled on remote.
|
||||
In above case, only column filter will be handled on remote because we enable it by giving `true`.
|
||||
|
||||
> Note: when remote is enable, you are suppose to give [`onTableChange`](#ontablechange-function) prop on `BootstrapTable`
|
||||
> It's the only way to communicate to your remote server and update table states.
|
||||
@ -306,7 +311,7 @@ There's only two arguments will be passed to `onTableChange`: `type` and `newSta
|
||||
* `sort`
|
||||
* `cellEdit`
|
||||
|
||||
Following is a shape of `newState`
|
||||
Following is a all available properties in `newState` object:
|
||||
|
||||
```js
|
||||
{
|
||||
|
||||
26
website/blog/2019-02-09-version-bump.md
Normal file
26
website/blog/2019-02-09-version-bump.md
Normal file
@ -0,0 +1,26 @@
|
||||
---
|
||||
title: New Release (2019-02-09)
|
||||
author: Allen Fang
|
||||
authorURL: https://twitter.com/allenfang_tw
|
||||
---
|
||||
|
||||
## Changed Packages
|
||||
|
||||
We got following package version bump in this release:
|
||||
|
||||
* `react-bootstrap-table-next@2.1.1`
|
||||
* `react-bootstrap-table2-filter@1.1.3`
|
||||
* `react-bootstrap-table2-toolkit@1.2.1`
|
||||
* `react-bootstrap-table2-paginator@2.0.2`
|
||||
|
||||
## Changelog
|
||||
|
||||
### Bug fixes
|
||||
* Fixed Standalone Pagination render wrong page list when user do the filter or search([cf043c6](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/790/commits/ecea3efdaa1757d85596cdde64d6827fbcf043c6), [63c2630](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/790/commits/63c2630f46959df7d867ad8d9f62331aa52e4fb4), [cacc28e](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/790/commits/cacc28e1bc6c8e96dfaf38c40874278fba5abf21))
|
||||
* Fixed Controlled input element lose focus on re-render inside expanded rows([8bef7eb](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/8bef7eb34861ca6ef0bc37c5774239f237a922fc))
|
||||
|
||||
### Features
|
||||
N/A
|
||||
|
||||
### Enhancements
|
||||
* Allow to return a custom filter results from `onFilter`([aafbc7e](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/8b89b3de0e1e8554db7b1c3d9d115af0daafbc7e))
|
||||
Loading…
Reference in New Issue
Block a user