visible: Element visibility

Description Usage Arguments Examples

View source: R/visible.R

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

1
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

1
2
3
4
library(htmltools)

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

cascadess documentation built on Jan. 13, 2021, 5:10 p.m.