text_transform: Text transformation

View source: R/text-transform.R

text_transformR Documentation

Text transformation

Description

The text_transform() function adjusts the case of text in a tag element.

Usage

text_transform(x, transform)

Arguments

x

A tag element or .style pronoun.

transform

A character string specifying the transform. One of,

  • "uppercase"

  • "lowercase"

  • "capitalize"

Value

An object of the same type as x.

See Also

Other text utilities: text_alignment(), text_break(), text_color(), text_decoration(), text_height(), text_selection(), text_style(), text_weight(), text_wrap()

Examples


library(htmltools)

div(
  .style %>%
    text_transform("lowercase"),
  "TRANSFORMED TO LOWERCASE"
)

div(
  .style %>%
    text_color(theme_warning()) %>%
    text_transform("uppercase"),
  "transformed to uppercase"
)


cascadess documentation built on Oct. 30, 2024, 9:29 a.m.