theme_selector {shiny.semantic} | R Documentation |
Themes changer dropdown
Description
Themes changer dropdown
Usage
theme_selector(input_id = "theme", label = "Choose theme")
Arguments
input_id |
Id of dropdown. |
label |
Dropdown label. |
Examples
if (interactive()) {
library(shiny)
library(shiny.semantic)
ui <- semanticPage(
theme = "superhero",
actionButton("action_button", "Press Me!"),
textOutput("button_output"),
theme_selector(),
textOutput("theme")
)
server <- function(input, output, session) {
output$button_output <- renderText(as.character(input$action_button))
output$theme <- renderText(as.character(input$theme))
}
shinyApp(ui, server)
}
[Package shiny.semantic version 0.5.1 Index]