UI Output — renderUI
renderUI(expr, env = parent.frame(), quoted = FALSE, outputArgs = list())
Arguments
expr |
An expression that returns a Shiny tag object, |
---|---|
env |
The environment in which to evaluate |
quoted |
Is |
outputArgs |
A list of arguments to be passed through to the implicit
call to |
Description
Renders reactive HTML using the Shiny UI library.
Details
The corresponding HTML output tag should be div
and have the CSS class
name shiny-html-output
(or use uiOutput()
).
See also
Examples
## Only run examples in interactive R sessions if (interactive()) { ui <- fluidPage( uiOutput("moreControls") ) server <- function(input, output) { output$moreControls <- renderUI({ tagList( sliderInput("n", "N", 1, 1000, 500), textInput("label", "Label") ) }) } shinyApp(ui, server) }