Learn R Programming

cascadess (version 0.1.0)

visible: Element visibility

Description

The visible() function changes the visibility of a tag element. An invisible element is both visually hidden and is also hidden from screen readers.

Usage

visible(x, value)

Arguments

x

A tag element or .style pronoun.

value

One of TRUE or FALSE specifying if the element is visible, defaults to TRUE.

Examples

Run this code
# NOT RUN {
library(htmltools)

div("I am hidden") %>%
  visible(FALSE)

# }

Run the code above in your browser using DataLab