bulmaSliderInput | R Documentation |
Add a slider input.
bulmaSliderInput( inputId, value, min, max, color = NULL, step = 1, class = NULL, size = NULL, orient = "horizontal", ... )
inputId |
Id to access value. |
value, min, max |
Current value, maximum and minimum of slider. |
color |
Slider color. |
step |
Slider step. |
class |
Additional class. |
size |
Size of slider, see details. |
orient |
Slider orientation, takes, |
... |
Any other parameter to pass to |
Valid size
:
NULL
(standard)
small
medium
large
John Coene, jcoenep@gmail.com
if(interactive()){ library(shiny) ui <- bulmaPage( bulmaContainer( br(), bulmaSliderInput("slider", 10, 3, 150), plotOutput("plot") ) ) server <- function(input, output){ data <- reactive({ rnorm(input$slider, 20, 4) }) output$plot <- renderPlot({ hist(data()) }) } shinyApp(ui, server) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.