Description Usage Arguments Value Examples
View source: R/golem_utils_ui.R
Hide or display a tag
1 2 3 |
tag |
the tag |
a tag
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Not run:
## Hide
a <- shiny::tags$p(src = "plop", "pouet")
undisplay(a)
b <- shiny::actionButton("go_filter", "go")
undisplay(b)
## End(Not run)
## Not run:
## Show
a <- shiny::tags$p(src = "plop", "pouet")
a_hidden <- undisplay(a)
display(a_hidden)
# do not change not hidden tags
b_show <- shiny::actionButton("go_filter", "go")
display(b_show)
# Keep other attributes
b_show$attribs$style <- 'display: none; background: red'
display(b_show)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.