mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
20190427 release
This commit is contained in:
parent
38a651e29a
commit
5c85cb9e40
@ -32,6 +32,7 @@ const selectRow = {
|
||||
* [hideSelectAll](#selectrowhideselectall-bool)
|
||||
* [selectionRenderer](#selectrowselectionrenderer-function)
|
||||
* [selectionHeaderRenderer](#selectrowselectionheaderrenderer-function)
|
||||
* [headerColumnStyle](#selectrowheadercolumnstyle-object-function)
|
||||
|
||||
-----
|
||||
|
||||
@ -263,3 +264,27 @@ const selectRow = {
|
||||
)
|
||||
};
|
||||
```
|
||||
|
||||
## selectRow.headerColumnStyle - [Object | Function]
|
||||
A way to custome the selection header cell. `headerColumnStyle` not only accept a simple style object but also a callback function for more flexible customization:
|
||||
|
||||
### Style Object
|
||||
|
||||
```js
|
||||
const selectRow = {
|
||||
mode: 'checkbox',
|
||||
headerColumnStyle: { backgroundColor: 'blue' }
|
||||
};
|
||||
```
|
||||
|
||||
### Callback Function
|
||||
|
||||
```js
|
||||
const selectRow = {
|
||||
mode: 'checkbox',
|
||||
headerColumnStyle: (status) => (
|
||||
// status available value is checked, indeterminate and unchecked
|
||||
return { backgroundColor: 'blue' };
|
||||
)
|
||||
};
|
||||
```
|
||||
|
||||
27
website/blog/2019-04-27-version-bump.md
Normal file
27
website/blog/2019-04-27-version-bump.md
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
title: New Release (2019-04-27)
|
||||
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.1.2`
|
||||
* `react-bootstrap-table2-toolkit@1.4.2`
|
||||
|
||||
|
||||
## Changelog
|
||||
|
||||
### Bug fixes
|
||||
* Fix rendering searchbar will throw `tableId` prop type warning([#914](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/914))
|
||||
* Fix `expandRow` does not work with nested `keyField`([36fa9b8](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/36fa9b8630b24f3628113a37be1c6306b5f1018c))
|
||||
* Fix CSV Export doesn't handle double quotes([737922a](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/737922a5a4b0b613571d30077fb2ac434a2e0b2f))
|
||||
* Fix `column.onClick` some parameters is `undefined` if `column.editable` is true([6168bd7](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/6168bd7532524edfa8d59b034bbccd5f7328ca55))
|
||||
|
||||
### Features
|
||||
N/A
|
||||
|
||||
### Enhancements
|
||||
* Allow to custom the style on selection header cell via `selectRow.headerColumnStyle`([0f37fae](https://github.com/react-bootstrap-table/react-bootstrap-table2/commit/0f37fae23d9c038299de7a1f17b08f91fcabc4da))
|
||||
Loading…
Reference in New Issue
Block a user