Skip to content

Commit 8c7df37

Browse files
committed
Expose aggregatorControls in aggregatorCell
1 parent 8370a75 commit 8c7df37

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/PivotTableUI.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ class PivotTableUI extends React.PureComponent {
375375
const numValsAllowed =
376376
this.props.aggregators[this.props.aggregatorName]([])().numInputs || 0;
377377

378+
const aggregatorControls = this.props.aggregators[
379+
this.props.aggregatorName
380+
]([])().controls;
381+
378382
const rendererName =
379383
this.props.rendererName in this.props.renderers
380384
? this.props.rendererName
@@ -468,6 +472,7 @@ class PivotTableUI extends React.PureComponent {
468472
/>,
469473
i + 1 !== numValsAllowed ? <br key={`br${i}`} /> : null,
470474
])}
475+
{aggregatorControls && aggregatorControls(this.props.data)}
471476
</td>
472477
);
473478

0 commit comments

Comments
 (0)