20181014 release

This commit is contained in:
AllenFang 2018-10-14 16:13:01 +08:00
parent e65e0ab064
commit c104dad224
4 changed files with 56 additions and 1 deletions

View File

@ -16,6 +16,7 @@ title: Row Expand Props
* [onExpandAll](#expandrowonexpandall-function)
* [showExpandColumn](#expandrowshowexpandcolumn-bool)
* [onlyOneExpanding](#expandrowonlyoneexpanding-bool)
* [expandByColumnOnly](#expandrowexpandbycolumnonly-bool)
* [expandColumnRenderer](#expandrowexpandcolumnrenderer-function)
* [expandHeaderColumnRenderer](#expandrowexpandheadercolumnrenderer-function)
@ -106,13 +107,24 @@ const expandRow = {
## expandRow.onlyOneExpanding - [Bool]
Default is `false`. Enable this will only allow one row get expand at the same time.
```js
```js
const expandRow = {
renderer: (row) => ...
onlyOneExpanding: true
};
```
## expandRow.expandByColumnOnly - [Bool]
Default is `false`. If you want to restrict user to expand/collapse row via clicking the expand column only, you can enable it.
```js
const expandRow = {
renderer: (row) => ...,
showExpandColumn: true,
expandByColumnOnly: true
};
```
## expandRow.expandColumnRenderer - [Function]
Provide a callback function which allow you to custom the expand indicator. This callback only have one argument which is an object and contain one property `expanded` to indicate if current row is expanded

View File

@ -24,6 +24,7 @@ const selectRow = {
* [bgColor](#selectrowbgcolor-string-function)
* [nonSelectable](#selectrownonselectable-array)
* [clickToSelect](#selectrowclicktoselect-bool)
* [clickToExpand](#selectrowclicktoexpand-bool)
* [clickToEdit](#selectrowclicktoedit-bool)
* [onSelect](#selectrowonselect-function)
* [onSelectAll](#selectrowonselectall-function)
@ -148,6 +149,16 @@ const selectRow = {
> Note: When you also enable [cellEdit](./cell-edit-props.html), the `selectRow.clickToSelect` will deactivate the functionality of cell editing. If you want to click on row to select row and edit cell simultaneously, you are suppose to enable [`selectRow.clickToEdit`](#selectrowclicktoedit-bool)
## selectRow.clickToExpand - [Bool]
Default is false, enable it will let user able to expand and select row when user clicking on the row.
```js
const selectRow = {
mode: 'checkbox',
clickToExpand: true
};
```
## selectRow.clickToEdit - [Bool]
Able to click to edit cell and select row at the same time.

View File

@ -19,6 +19,7 @@ title: BootstrapTable Props
* [hover](#hover-bool)
* [condensed](#condensed-bool)
* [id](#id-string)
* [tabIndexCell](#tabindexcell-bool)
* [classes](#classes-string)
* [wrapperClasses](#wrapperClasses-string)
* [headerClasses](#headerClasses-string)
@ -117,6 +118,10 @@ Same as bootstrap `.table-condensed` class for making a table more compact by cu
## id - [String]
Customize id on `table` element.
## tabIndexCell - [Bool]
Enable the `tabIndex` attribute on `<td>` element.
## classes - [String]
Customize class on `table` element.

View File

@ -0,0 +1,27 @@
---
title: New Release (2018-10-14)
author: Allen Fang
authorURL: https://twitter.com/allenfang_tw
---
## Changed Packages
We got following package version bump in this release:
* `react-bootstrap-table-next@1.3.0`
* `react-bootstrap-table2-editor@1.2.0`
## Changelog
### Bug fixes
* Fixed bug if `pagination` props changes([#599](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/599))
### Features
* Support expand/collapse row only though expand indicator([#546](https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/546))
* Support `selectRow.clickToExpand`, which allow user to click on row to select/expand row at the same time([#497](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/497))
* Support render `tabIndex` on `td`([#607](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/607))
### Enhancements
* Improve row level performance([#497](https://github.com/react-bootstrap-table/react-bootstrap-table2/pull/497))