set_formatter_color | R Documentation |
Set color formatter
set_formatter_color(widget, column)
widget |
A |
column |
The name of the column the formatter is applied to. |
The updated tabulator()
HTML widget
data <- data.frame(
Label = c("R", "G", "B"),
Color = c("red", "green", "blue")
)
tabulator(data, width = 200) |>
set_formatter_color("Color")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.