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 tag_list 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(
      action_button("btn", "Click me"),
      hidden(
        p(id = "element", "I was born invisible")
      )
    )
  )

  server <- function(input, output, session) {
    observe_event(input$btn, {
      show(session, "element")
    })
  }

  tabler_app(ui, server)
}

Loading...