Description Usage Arguments Examples
Wired Toggle
1 | wired_toggle(inputId, label, value = FALSE, width = NULL)
|
inputId |
The |
label |
Display label for the control, or |
value |
Initial value ( |
width |
The width of the input, e.g. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | if (interactive()) {
library(shiny)
library(wired)
ui <- fluidPage(
wired_toggle(
inputId = "tggl",
label = "Toggle:"
),
verbatimTextOutput(outputId = "res")
)
server <- function(input, output, session) {
output$res <- renderPrint(input$tggl)
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.