Skip to content

Commit 73fac3a

Browse files
lordy179davidguttman
authored andcommitted
Added prop to rename solo (#69)
1 parent 8ee1abc commit 73fac3a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

index.jsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ module.exports = createReactClass({
3535
eventBus: new Emitter,
3636
compact: false,
3737
excludeSummaryFromExport: false,
38-
onData: function () {}
38+
onData: function () {},
39+
soloText: "solo"
3940
}
4041
},
4142

@@ -162,8 +163,9 @@ module.exports = createReactClass({
162163
onSort={this.setSort}
163164
onColumnHide={this.hideColumn}
164165
nPaginateRows={this.props.nPaginateRows}
165-
onSolo={this.setSolo} />
166-
166+
onSolo={this.setSolo}
167+
soloText={this.props.soloText}
168+
/>
167169
</div>
168170
)
169171

lib/pivot-table.jsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ module.exports = createReactClass({
1414
sortDir: 'asc',
1515
onSort: function () {},
1616
onSolo: function () {},
17-
onColumnHide: function () {}
17+
onColumnHide: function () {},
18+
soloText: "solo"
1819
}
1920
},
2021

@@ -120,7 +121,7 @@ module.exports = createReactClass({
120121
onClick={partial(this.props.onSolo, {
121122
title: col.title,
122123
value: val
123-
})}>solo</a>
124+
})}>{this.props.soloText}</a>
124125
</span>
125126
)
126127
}

0 commit comments

Comments
 (0)