set_formatter_color: Set color formatter

View source: R/columns.R

set_formatter_colorR 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")

rtabulator documentation built on Sept. 23, 2024, 5:11 p.m.