Skip to content

Commit

Permalink
example for #1409
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenFang committed Jun 24, 2017
1 parent 85eeeb5 commit 0720e60
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions examples/js/expandRow/custom-expand-class.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,15 @@ export default class CustomExpandClass extends React.Component {

render() {
const options = {
expandBodyClass: function(row, rowIndex) {
if (rowIndex > 1) {
return 'custom-expand-body-1';
expandBodyClass: function(row, rowIndex, isExpanding) {
if (!isExpanding) {
return 'current-is-hidden';
} else {
return 'custom-expand-body-0';
if (rowIndex > 1) {
return 'custom-expand-body-1';
} else {
return 'custom-expand-body-0';
}
}
},
expandParentClass: 'custom-expand-parent' // expandParentClass also accept callback function
Expand Down

0 comments on commit 0720e60

Please sign in to comment.