text_selection: Text selection

View source: R/text-selection.R

text_selectionR Documentation

Text selection

Description

The text_selection() function adjusts how text is selected within a tag element when the user clicks on the element.

Usage

text_selection(x, select)

Arguments

x

A tag element or .style pronoun.

select

A character string specifying how text is selected. One of,

  • "all"

  • "auto"

  • "none"

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_style(), text_transform(), text_weight(), text_wrap()

Examples


library(htmltools)

div(
  .style %>%
    text_selection("all"),
  "Click to select all the text"
)


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