set_formatter_html | R Documentation |
Set HTML formatter
set_formatter_html(widget, column, hoz_align = c("left", "center", "right"))
widget |
A |
column |
The name of the column the formatter is applied to. |
hoz_align |
(character): The horizontal alignment of the column. |
The updated tabulator()
HTML widget
data <- data.frame(
id = c(1, 2, 3, 4, 5, 6, 7),
text_style = c(
"<i>Italic</i>",
"<b>Bold</b>",
"<span style='color: green'>Green</span>",
"<del>Deleted</del>",
"<small>Small</small>",
"H<sub>2</sub>O",
"x<sup>2</sup>"
)
)
tabulator(data, width = 400) |>
set_formatter_html("text_style")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.