Description Format Methods Examples
The 'TableHtmlRenderer' class creates a HTML representation of a table.
R6Class
object.
new()
Create a new 'TableHtmlRenderer' object.
TableHtmlRenderer$new(parentTable)
parentTable
Owning table.
No return value.
getTableHtml()
Generate a HTML representation of the table.
TableHtmlRenderer$getTableHtml(styleNamePrefix = NULL)
styleNamePrefix
A character variable specifying a prefix for all named CSS styles, to avoid style name collisions where multiple tables exist.
A list containing HTML tags from the 'htmltools' package. Convert this to a character variable using 'as.character()'.
clone()
The objects of this class are cloneable with this method.
TableHtmlRenderer$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 4 5 6 | # 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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.