html: Apply HTML attributes to title, subtitle, and source text.

View source: R/table_elements.R

htmlR Documentation

Apply HTML attributes to title, subtitle, and source text.

Description

Use 'html()' to apply HTML attributes to text within 'add_title()', 'add_subtitle()', and 'add_source()'.

Usage

html(text, ...)

Arguments

text, ...

The text provided within the title, subtitle or source with HTML attributes applied.

Value

an object of class HTML.

Examples

## Not run: 
## Change the title color to blue
data <- iris[10:29, ]
reactable(data) %>%
add_title(html("Normal title. <span style='color:DodgerBlue;'>Blue title.</span>"))

## Add emojis to the source
data <- iris[10:100, ]
reactable(data) %>%
add_source(html("<p>Made with &#128151; by: John Doe &#128512;</p>"))

## End(Not run)

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