Skip to content

Commit c251921

Browse files
committed
docs for #1006
1 parent 056957b commit c251921

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/row-expand.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* [expandColumnPosition](#expandColumnPosition)
1919
* [expandColumnRenderer](#expandColumnRenderer)
2020
* [expandHeaderColumnRenderer](#expandHeaderColumnRenderer)
21+
* [className](#className)
2122
* [parentClassName](#parentClassName)
2223

2324
### <a name="renderer">expandRow.renderer - [Function]</a>
@@ -168,6 +169,27 @@ const expandRow = {
168169
};
169170
```
170171

172+
### <a name='className'>expandRow.className - [String | Function]</a>
173+
Apply the custom class name on the expanding row. For example:
174+
175+
```js
176+
const expandRow = {
177+
renderer: (row) => ...,
178+
className: 'foo'
179+
};
180+
```
181+
following usage is more flexible way for customing the class name:
182+
183+
```js
184+
const expandRow = {
185+
renderer: (row) => ...,
186+
className: (isExpanded, row, rowIndex) => {
187+
if (rowIndex > 2) return 'foo';
188+
return 'bar';
189+
}
190+
};
191+
```
192+
171193
### <a name='parentClassName'>expandRow.parentClassName - [String | Function]</a>
172194
Apply the custom class name on parent row of expanded row. For example:
173195

0 commit comments

Comments
 (0)