| hidden {tabler} | R Documentation |
Initialize a Tag as Hidden
Description
Create a tag (or tag list) that is invisible when the page
first loads. It can be made visible later with toggle or
show.
Usage
hidden(...)
Arguments
... |
Tag (or tagList or list of tags) to make invisible. |
Value
The tag (or tags) that were given as an argument, in a hidden state.
See Also
show, hide, toggle
Examples
if (interactive()) {
ui <- page(
title = "Hidden Example",
body = body(
actionButton("btn", "Click me"),
hidden(
p(id = "element", "I was born invisible")
)
)
)
server <- function(input, output, session) {
observeEvent(input$btn, {
show(session, "element")
})
}
tablerApp(ui, server)
}