The `TableHtmlRenderer` class creates a HTML representation of a table.

Format

R6Class object.

Methods

Public methods


Method new()

Create a new `TableHtmlRenderer` object.

Usage

TableHtmlRenderer$new(parentTable)

Arguments

parentTable

Owning table.

Returns

No return value.


Method getTableHtml()

Generate a HTML representation of the table.

Usage

TableHtmlRenderer$getTableHtml(styleNamePrefix = NULL)

Arguments

styleNamePrefix

A character variable specifying a prefix for all named CSS styles, to avoid style name collisions where multiple tables exist.

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

TableHtmlRenderer$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

# This class is for internal use only. It is # created only by the BasicTable class when rendering to HTML. # See the package vignettes for more information about outputs. library(basictabler) tbl <- qtbl(data.frame(a=1:2, b=3:4)) tbl$renderTable()