Expose aggregator outlet to allow rendering additional content in aggregatorCell #116
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces an additional key on aggregators,
outlet
, a function which, if present, gets called once byPivotTableUI
to render additional aggregator-specific content just below the built-in aggregator selector (in the area outlined in red here):Some use cases for providing this escape hatch include:
When the outlet function is called, it will be passed the
PivotTableUI
'sprops.data
, in case the called aggregator wants to make use of that data.Here's a kind of silly example of a custom aggregator using this new function:
Resolves #117