set_formatter_color {rtabulator}R Documentation

Set color formatter

Description

Set color formatter

Usage

set_formatter_color(widget, column)

Arguments

widget

A tabulator() HTML widget.

column

The name of the column 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")

[Package rtabulator version 0.1.2 Index]