Description Usage Arguments Examples
Wired Slider
1 2 |
inputId |
The |
label |
Display label for the control, or |
value |
The initial value of the slider. |
min |
The minimum value (inclusive) that can be selected. |
max |
The maximum value (inclusive) that can be selected. |
step |
Specifies the interval between each selectable value on the slider. |
radius |
Radius of the knob of the slider. |
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 23 24 25 26 27 | if (interactive()) {
library(shiny)
library(wired)
ui <- fluidPage(
wired_slider(
inputId = "sldr",
label = "Slider:",
min = 50,
max = 600,
value = 300,
step = 10,
radius = 10
),
verbatimTextOutput(outputId = "res")
)
server <- function(input, output, session) {
output$res <- renderPrint(input$sldr)
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.