mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
docs for #1006
This commit is contained in:
parent
056957b0b5
commit
c25192145f
@ -18,6 +18,7 @@
|
|||||||
* [expandColumnPosition](#expandColumnPosition)
|
* [expandColumnPosition](#expandColumnPosition)
|
||||||
* [expandColumnRenderer](#expandColumnRenderer)
|
* [expandColumnRenderer](#expandColumnRenderer)
|
||||||
* [expandHeaderColumnRenderer](#expandHeaderColumnRenderer)
|
* [expandHeaderColumnRenderer](#expandHeaderColumnRenderer)
|
||||||
|
* [className](#className)
|
||||||
* [parentClassName](#parentClassName)
|
* [parentClassName](#parentClassName)
|
||||||
|
|
||||||
### <a name="renderer">expandRow.renderer - [Function]</a>
|
### <a name="renderer">expandRow.renderer - [Function]</a>
|
||||||
@ -168,6 +169,27 @@ const expandRow = {
|
|||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### <a name='className'>expandRow.className - [String | Function]</a>
|
||||||
|
Apply the custom class name on the expanding row. For example:
|
||||||
|
|
||||||
|
```js
|
||||||
|
const expandRow = {
|
||||||
|
renderer: (row) => ...,
|
||||||
|
className: 'foo'
|
||||||
|
};
|
||||||
|
```
|
||||||
|
following usage is more flexible way for customing the class name:
|
||||||
|
|
||||||
|
```js
|
||||||
|
const expandRow = {
|
||||||
|
renderer: (row) => ...,
|
||||||
|
className: (isExpanded, row, rowIndex) => {
|
||||||
|
if (rowIndex > 2) return 'foo';
|
||||||
|
return 'bar';
|
||||||
|
}
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
### <a name='parentClassName'>expandRow.parentClassName - [String | Function]</a>
|
### <a name='parentClassName'>expandRow.parentClassName - [String | Function]</a>
|
||||||
Apply the custom class name on parent row of expanded row. For example:
|
Apply the custom class name on parent row of expanded row. For example:
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user