tooltip: Apply a tooltip to cells.

View source: R/table_elements.R

tooltipR Documentation

Apply a tooltip to cells.

Description

Apply a tooltip to cells.

Usage

tooltip(data, number_fmt = NULL)

Arguments

data

Null.

number_fmt

Optionally format numbers using formats from the scales package. Default is NULL.

Value

a function that applies a tooltip to a reactable table.

Examples

## Not run: 
data <- iris[10:29, ]

## Apply a tooltip to color_scales()
reactable(data,
 columns = list(
 Petal.Length = colDef(
 cell = tooltip(),
 style = color_scales(data))
 ))

## End(Not run)

reactablefmtr documentation built on March 18, 2022, 5:08 p.m.