create_html: Create the *html* code of a *styledTable*

View source: R/create_html.R

create_htmlR Documentation

Create the html code of a styledTable

Description

Create the html code of a styledTable

Usage

create_html(
  st,
  caption = NULL,
  footer = NULL,
  indent_level = 0L,
  use_scope = TRUE
)

Arguments

st

A StyledTable class object

caption

An optional string holding the table caption

footer

An optional character vector holding the table footer remarks

indent_level

An optional integer defining, the indentation level of the resulting html code

use_scope

An optional flag, defining if the html table should also use the scope property. This property is an additional method for improving the accessibility of an html table. By default this is turned off, since the usage of scope does not allow sub headings and accessibility is already ensured by assigning unique header ids to the id property of the header cells and linking data cells via their headers property to the corresponding header cells.

Value

A string holding the entire html code of the table.


R-package/styledTables documentation built on Feb. 6, 2024, 2:21 a.m.