Learn R Programming

shinymaterial (version 1.2.0)

render_material_from_server: Render reactive UI shinymaterial elements

Description

This function is used within a shiny::renderUI(). The corresponding output is referenced using shiny::uiOutput().

Usage

render_material_from_server(material_ui)

Arguments

material_ui

shinymaterial UI element(s)

Examples

Run this code
# NOT RUN {
## Only run examples in interactive R sessions
if (interactive()) {

ui <- material_page(
  uiOutput("renderedButton")
)

server <- function(input, output) {
  output$renderedButton <- renderUI({
  render_material_from_server(material_button("example_button", "Button"))
})
}
shinyApp(ui, server)
}
# }

Run the code above in your browser using DataLab