bulmaSliderInput: Slider

Description Usage Arguments Details Author(s) Examples

View source: R/bulma-input.R

Description

Add a slider input.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
bulmaSliderInput(
  inputId,
  value,
  min,
  max,
  color = NULL,
  step = 1,
  class = NULL,
  size = NULL,
  orient = "horizontal",
  ...
)

Arguments

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, horizontal or vertical.

...

Any other parameter to pass to input.

Details

Valid size:

Author(s)

John Coene, jcoenep@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)
}

JohnCoene/shinybulma documentation built on Oct. 17, 2020, 8:57 p.m.