set_formatter_tick_cross: Set tick cross formatter

View source: R/columns.R

set_formatter_tick_crossR Documentation

Set tick cross formatter

Description

Set tick cross formatter

Usage

set_formatter_tick_cross(widget, column, hoz_align = "center")

Arguments

widget

A tabulator() HTML widget.

column

The name of the column the formatter is applied to.

hoz_align

(character): The horizontal alignment of the column.

Value

The updated tabulator() HTML widget

Examples

data <- data.frame(
  Artist = c("Art Blackey", "Nirvana", "Bob Marley"),
  Grunge = c(0, 1, 0),
  Jazz = c(1, 0, 0),
  Reggae = c(0, 0, 1)
)

tabulator(data, width = 400) |>
  set_formatter_tick_cross("Grunge") |>
  set_formatter_tick_cross("Jazz") |>
  set_formatter_tick_cross("Reggae")

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