View source: R/text-selection.R
text_selection | R Documentation |
The text_selection()
function adjusts how text is selected within a tag
element when the user clicks on the element.
text_selection(x, select)
x |
A tag element or .style pronoun. |
select |
A character string specifying how text is selected. One of,
|
An object of the same type as x
.
Other text utilities:
text_alignment()
,
text_break()
,
text_color()
,
text_decoration()
,
text_height()
,
text_style()
,
text_transform()
,
text_weight()
,
text_wrap()
library(htmltools)
div(
.style %>%
text_selection("all"),
"Click to select all the text"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.