20190310 release

This commit is contained in:
AllenFang
2019-03-10 13:29:35 +08:00
parent 3a3d51e8c9
commit 3c925c124b
3 changed files with 60 additions and 4 deletions

View File

@@ -100,7 +100,7 @@ const paginationOption = {
```js
<PaginationProvider
pagination={ paginationFactory(options) }
pagination={ paginationFactory(paginationOption) }
>
{
({
@@ -121,7 +121,7 @@ const paginationOption = {
So far, your customization pagination should look like it:
```js
<PaginationProvider
pagination={ paginationFactory(options) }
pagination={ paginationFactory(paginationOption) }
>
{
({
@@ -192,7 +192,22 @@ import paginationFactory, {
</PaginationProvider>
```
That's it!! The benifit for using standalone is you can much easier to render the standalone component in any posistion. In the future, we will implement more featue like applying `style`, `className` etc on standalone components.
That's it!! The benifit for using standalone is you can much easier to render the standalone component in any posistion. In the future, we will implement more featue like applying `style`, `className` etc on standalone components.
<h5><b>Customizable props on `PaginationListStandalone`</b></h5>
* N/A
<h5><b>Customizable props on `SizePerPageDropdownStandalone`</b></h5>
* `open`: <b>true</b> to make dropdown show.
* `hidden`: <b>true</b> to hide the size per page dropdown.
* `btnContextual`: Set the button contextual.
* `variation`: Variation for dropdown, available value is `dropdown` and `dropup`.
* `className`: Custom the class on size per page dropdown
<h5><b>Customizable props on `SizePerPageDropdownStandalone`</b></h5>
* N/A
#### 4.2 Customization Everything
@@ -227,7 +242,7 @@ onPageChange,
onSizePerPageChange
```
In most of case, `page`, `sizePerPage`, `onPageChange` and `onSizePerPageChange` are much important properties for you:
In most of case, `page`, `sizePerPage`, `onPageChange` and `onSizePerPageChange` are most important properties for you:
* `page`: Current page.
* `sizePerPage`: Current size per page.

View File

@@ -51,6 +51,19 @@ const { SearchBar } = Search;
* You should render `SearchBar` with `searchProps` as well. The `SearchBar` position is depends on you.
### `SearchBar` Props
#### className - [string]
Custom the class on input element.
#### placeholder - [string]
Custom the placeholder on input element.
#### style - [object]
Custom the style on input element.
#### delay = [number]
milionsecond for debounce user input.
## Customize Search Component

View File

@@ -0,0 +1,28 @@
---
title: New Release (2019-03-10)
author: Allen Fang
authorURL: https://twitter.com/allenfang_tw
---
## Changed Packages
We got following package version bump in this release:
* `react-bootstrap-table-next@3.0.1`
* `react-bootstrap-table2-filter@1.1.6`
* `react-bootstrap-table2-paginator@2.0.4`
* `react-bootstrap-table2-toolkit@1.3.2`
## Changelog
### Bug fixes
* Fixed `btnContextual` prop on `SizePerPageDropdownStandalone` not passed to `SizePerPageDropdown`([3af30a0](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/3af30a02659ad81b39952ce845af2abbf0cd71f4))
* Fixed expanded row column span does not update([#837](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/837))
* Fixed column filter with custom pagination is not work well([921e8c7](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/921e8c7ecc3cc12f5fb5bd94d446b7a2f9141ddc))
* Fixed pagination is not work well when data delete or insert([e9f08d2](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/e9f08d278d8e70df8ddbbcd533a8478070cf25de))
### Features
N/A
### Enhancements
N/A