render_material_from_server {shinymaterial} | R Documentation |
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
## 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)
}
[Package shinymaterial version 1.2.0 Index]