| PivotHtmlRenderer {pivottabler} | R Documentation |
R6 class that renders a pivot table in HTML.
Description
The 'PivotHtmlRenderer' class creates a HTML representation of a pivot table.
Format
R6Class object.
Methods
Public methods
Method new()
Create a new 'PivotHtmlRenderer' object.
Usage
PivotHtmlRenderer$new(parentPivot)
Arguments
parentPivotThe pivot table that this 'PivotHtmlRenderer' instance belongs to.
Returns
A new 'PivotHtmlRenderer' object.
Method clearIsRenderedFlags()
An internal method used when rendering a pivot table to HTML. Clear the IsRendered flags that exist on the 'PivotDataGroup' class.
Usage
PivotHtmlRenderer$clearIsRenderedFlags()
Returns
No return value.
Method getTableHtml()
Generate a HTML representation of the pivot table, optionally including additional detail for debugging purposes.
Usage
PivotHtmlRenderer$getTableHtml( styleNamePrefix = NULL, includeHeaderValues = FALSE, includeRCFilters = FALSE, includeCalculationFilters = FALSE, includeWorkingData = FALSE, includeEvaluationFilters = FALSE, includeCalculationNames = FALSE, includeRawValue = FALSE, includeTotalInfo = FALSE, exportOptions = NULL, showRowGroupHeaders = FALSE )
Arguments
styleNamePrefixA character variable specifying a prefix for all named CSS styles, to avoid style name collisions where multiple pivot tables exist.
includeHeaderValuesDefault 'FALSE', specify 'TRUE' to render this debug information.
includeRCFiltersDefault 'FALSE', specify 'TRUE' to render this debug information.
includeCalculationFiltersDefault 'FALSE', specify 'TRUE' to render this debug information.
includeWorkingDataDefault 'FALSE', specify 'TRUE' to render this debug information.
includeEvaluationFiltersDefault 'FALSE', specify 'TRUE' to render this debug information.
includeCalculationNamesDefault 'FALSE', specify 'TRUE' to render this debug information.
includeRawValueDefault 'FALSE', specify 'TRUE' to render this debug information.
includeTotalInfoDefault 'FALSE', specify 'TRUE' to render this debug information.
exportOptionsA list of additional export options - see the "A1. Appendix" for details.
showRowGroupHeadersDefault 'FALSE', specify 'TRUE' to render the row group headings. See the "Data Groups" vignette for details.
Returns
A list containing HTML tags from the 'htmltools' package. Convert this to a character variable using 'as.character()'.
Method clone()
The objects of this class are cloneable with this method.
Usage
PivotHtmlRenderer$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Examples
# This class should only be created by the pivot table.
# It is not intended to be created outside of the pivot table.