diff --git a/docs/row-expand.md b/docs/row-expand.md index 0110fa1..a4b49d5 100644 --- a/docs/row-expand.md +++ b/docs/row-expand.md @@ -18,6 +18,7 @@ * [expandColumnPosition](#expandColumnPosition) * [expandColumnRenderer](#expandColumnRenderer) * [expandHeaderColumnRenderer](#expandHeaderColumnRenderer) +* [className](#className) * [parentClassName](#parentClassName) ### expandRow.renderer - [Function] @@ -168,6 +169,27 @@ const expandRow = { }; ``` +### expandRow.className - [String | Function] +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'; + } +}; +``` + ### expandRow.parentClassName - [String | Function] Apply the custom class name on parent row of expanded row. For example: