diff --git a/docs/row-select-props.md b/docs/row-select-props.md index cbc05dd..b63dc8d 100644 --- a/docs/row-select-props.md +++ b/docs/row-select-props.md @@ -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' }; + ) +}; +``` diff --git a/website/blog/2019-04-27-version-bump.md b/website/blog/2019-04-27-version-bump.md new file mode 100644 index 0000000..ad141bd --- /dev/null +++ b/website/blog/2019-04-27-version-bump.md @@ -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)) \ No newline at end of file