mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2026-10-07 02:27:34 +00:00
patch docs and story for #546
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
* [onExpandAll](#onExpandAll)
|
||||
* [showExpandColumn](#showExpandColumn)
|
||||
* [onlyOneExpanding](#onlyOneExpanding)
|
||||
* [expandByColumnOnly](#expandByColumnOnly)
|
||||
* [expandColumnRenderer](#expandColumnRenderer)
|
||||
* [expandHeaderColumnRenderer](#expandHeaderColumnRenderer)
|
||||
|
||||
@@ -138,3 +139,14 @@ const expandRow = {
|
||||
onlyOneExpanding: true
|
||||
};
|
||||
```
|
||||
|
||||
### <a name='expandByColumnOnly'>expandRow.expandByColumnOnly - [Bool]</a>
|
||||
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
|
||||
};
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user