Skip to contents

Set color formatter

Usage

set_formatter_color(widget, columns)

Arguments

widget

A tabulator() HTML widget.

columns

The names of the columns the formatter is applied to.

Value

The updated tabulator() HTML widget

Examples

data <- data.frame(
  Label = c("R", "G", "B"),
  Color = c("red", "green", "blue")
)

tabulator(data, width = 200) |>
  set_formatter_color("Color")