Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding "TSV Export" to renders #98

Open
Ammar-K opened this issue Mar 31, 2019 · 1 comment
Open

adding "TSV Export" to renders #98

Ammar-K opened this issue Mar 31, 2019 · 1 comment

Comments

@Ammar-K
Copy link

Ammar-K commented Mar 31, 2019

Thank you for the great work,

I want to know how to add 'TVS Export' to the renders list.

@ghost
Copy link

ghost commented Apr 12, 2019

I used to do like this:

<script type="text/javascript" src="libs/rpivotTable_style-0.1/pivottable/export_renderers.min.js"></script>

rpt <- df %>%
  rpivotTable(rendererName = "Heatmap", 
    subtotals = FALSE
    renderers = htmlwidgets::JS("$.extend(
      $.pivotUtilities.export_renderers,
      $.pivotUtilities.renderers,
      $.pivotUtilities.c3_renderers,
      $.pivotUtilities.d3_renderers
  )")
) 

rpt$x$params$renderers = rpt$x$params$renderers[[1]]

rpt

However, the above does not work if I set subtotals = TRUE, and I wonder if it is possible to have both enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant