Skip to content

Commit 01ec193

Browse files
committed
patch docs and proptype for selectRow.clickToExpand
1 parent 19be67c commit 01ec193

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/row-selection.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* [bgColor](#bgColor)
1313
* [nonSelectable)](#nonSelectable)
1414
* [clickToSelect)](#clickToSelect)
15+
* [clickToExpand)](#clickToExpand)
1516
* [clickToEdit](#clickToEdit)
1617
* [onSelect](#onSelect)
1718
* [onSelectAll](#onSelectAll)
@@ -148,6 +149,16 @@ const selectRow = {
148149
> Note: When you also enable [cellEdit](./cell-edit.md), the `selectRow.clickToSelect` will deactivate the functionality of cell editing
149150
> If you want to click on row to select row and edit cell simultaneously, you are suppose to enable [`selectRow.clickToEdit`](#clickToEdit)
150151
152+
### <a name='clickToExpand'>selectRow.clickToExpand - [Bool]</a>
153+
Default is false, enable it will let user able to expand and select row when user clicking on the row.
154+
155+
```js
156+
const selectRow = {
157+
mode: 'checkbox',
158+
clickToExpand: true
159+
};
160+
```
161+
151162
### <a name='clickToEdit'>selectRow.clickToEdit - [Bool]</a>
152163
Able to click to edit cell and select row
153164

packages/react-bootstrap-table2/src/bootstrap-table.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ BootstrapTable.propTypes = {
139139
Const.ROW_SELECT_DISABLED
140140
]).isRequired,
141141
clickToSelect: PropTypes.bool,
142+
clickToExpand: PropTypes.bool,
142143
clickToEdit: PropTypes.bool,
143144
hideSelectAll: PropTypes.bool,
144145
onSelect: PropTypes.func,

0 commit comments

Comments
 (0)