Learn R Programming

shiny (version 0.9.0)

renderUI: UI Output

Description

Experimental feature. Makes a reactive version of a function that generates HTML using the Shiny UI library.

Usage

renderUI(expr, env = parent.frame(), quoted = FALSE, func = NULL)

Arguments

expr
An expression that returns a Shiny tag object, HTML, or a list of such objects.
env
The environment in which to evaluate expr.
quoted
Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.
func
A function that returns a Shiny tag object, HTML, or a list of such objects (deprecated; use expr instead).

Details

The corresponding HTML output tag should be div and have the CSS class name shiny-html-output (or use uiOutput).

See Also

conditionalPanel

Examples

Run this code
output$moreControls <- renderUI({
    list(

    )
  })

Run the code above in your browser using DataLab