File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
packages/react-bootstrap-table2/src Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 12
12
* [ bgColor] ( #bgColor )
13
13
* [ nonSelectable)] ( #nonSelectable )
14
14
* [ clickToSelect)] ( #clickToSelect )
15
+ * [ clickToExpand)] ( #clickToExpand )
15
16
* [ clickToEdit] ( #clickToEdit )
16
17
* [ onSelect] ( #onSelect )
17
18
* [ onSelectAll] ( #onSelectAll )
@@ -148,6 +149,16 @@ const selectRow = {
148
149
> Note: When you also enable [ cellEdit] ( ./cell-edit.md ) , the ` selectRow.clickToSelect ` will deactivate the functionality of cell editing
149
150
> If you want to click on row to select row and edit cell simultaneously, you are suppose to enable [ ` selectRow.clickToEdit ` ] ( #clickToEdit )
150
151
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
+
151
162
### <a name =' clickToEdit ' >selectRow.clickToEdit - [ Bool] </a >
152
163
Able to click to edit cell and select row
153
164
Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ BootstrapTable.propTypes = {
139
139
Const . ROW_SELECT_DISABLED
140
140
] ) . isRequired ,
141
141
clickToSelect : PropTypes . bool ,
142
+ clickToExpand : PropTypes . bool ,
142
143
clickToEdit : PropTypes . bool ,
143
144
hideSelectAll : PropTypes . bool ,
144
145
onSelect : PropTypes . func ,
You can’t perform that action at this time.
0 commit comments