plotly/react-pivottable

rendererOptions and totals

edwinqiu93 opened this issue · 2 comments

Hi,

I know you've probably been asked this a lot, but is there currently another way to hide row and column totals besides using css?

In the pivottable FAQ (https://github.com/nicolaskruchten/pivottable/wiki/Frequently-Asked-Questions#totals), you mentioned using rendererOptions, but I don't think there's a rendererOptions prop for react-pivottable. I've also looked at the tableOptions prop, but it doesn't seem to be there either.

Thank you!

The React version of the library doesn't (yet?) support the same rowTotals/colTotals that the jQuery-based original does. We'd accept a pull request for this functionality though! Shouldn't be too hard to implement in https://github.com/plotly/react-pivottable/blob/master/src/TableRenderers.jsx

And indeed, the React version of this library doesn't have a separate rendererOptions prop: all the props are pushed down to the renderers, so a renderer can just choose to accept any prop it likes.

Sounds good, thanks!