render_material_from_server: Render reactive UI shinymaterial elements

Description Usage Arguments Examples

View source: R/render-shiny-material-from-server.R

Description

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

Usage

1

Arguments

material_ui

shinymaterial UI element(s)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## 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)
}

Example output



shinymaterial documentation built on Sept. 1, 2020, 1:07 a.m.