add_css_table {tableHTML} | R Documentation |
Add css to the whole tableHTML
Description
add_css_table
will add css to the whole HTML table
Usage
add_css_table(tableHTML, css)
Arguments
tableHTML |
A tableHTML object created by the tableHTML function. |
css |
A list of two elements with the corresponding css. The first element of the list should be an atomic vector with the style definitions (e.g. background-color). The second element will be an atomic vector with the same length as the first element, which will contain the style definitions' values (e.g. red). Check the examples for more information. |
Details
add_css_table
will add css to the whole HTML table.
Value
A tableHTML object.
Examples
tableHTML(mtcars) %>%
add_css_table(css = list('background-color', 'lightgray'))
tableHTML(mtcars) %>%
add_css_table(css = list('background-color', 'lightgray')) %>%
add_css_table(css = list('background-color', 'lightblue'))
tableHTML(mtcars) %>%
add_css_table(css = list('background-color', 'lightgray')) %>%
add_css_table(css = list('text-align', 'center'))
[Package tableHTML version 2.1.2 Index]