File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 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 >
172194Apply the custom class name on parent row of expanded row. For example:
173195
You can’t perform that action at this time.
0 commit comments