Description Usage Arguments Examples
View source: R/render-shiny-material-from-server.R
This function is used within a shiny::renderUI(). The corresponding output is referenced using shiny::uiOutput().
1 | render_material_from_server(material_ui)
|
material_ui |
shinymaterial UI element(s) |
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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.