Skip to content

Commit 7123c60

Browse files
committed
example for expand all
1 parent d4691d3 commit 7123c60

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/js/expandRow/custom-expand-indicator.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ export default class ExpandRow extends React.Component {
8181
);
8282
}
8383

84-
expandedColumnHeaderComponent({ expandAllChilds }) {
85-
const content = (expandAllChilds ? '(-)' : '(+)' );
84+
expandedColumnHeaderComponent({ anyExpand }) {
85+
const content = (anyExpand ? '(-)' : '(+)' );
8686
return (
8787
<div>
8888
{ content }
@@ -93,8 +93,7 @@ export default class ExpandRow extends React.Component {
9393
render() {
9494
const options = {
9595
expandRowBgColor: 'rgb(242, 255, 163)',
96-
expandAllChilds: false,
97-
showExpandAllHeaderColumn: true
96+
expandAll: true
9897
};
9998
return (
10099
<BootstrapTable data={ products }

examples/js/expandRow/expand-indicator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ export default class ExpandRow extends React.Component {
7070

7171
render() {
7272
const options = {
73-
expandRowBgColor: 'rgb(242, 255, 163)'
73+
expandRowBgColor: 'rgb(242, 255, 163)',
74+
expandAll: true
7475
};
7576
return (
7677
<BootstrapTable data={ products }

0 commit comments

Comments
 (0)