RangeSlider {shiny.blueprint} | R Documentation |
Range slider
Description
Documentation: https://blueprintjs.com/docs/#core/components/sliders.range-slider
Usage
RangeSlider(...)
RangeSlider.shinyInput(inputId, ..., value = defaultValue)
Arguments
... |
Component props and children. See the official Blueprint docs for details. |
inputId |
The |
value |
Initial value. |
Value
Object with shiny.tag
class suitable for use in the UI of a Shiny app.
Examples
library(shiny)
library(shiny.blueprint)
ui <- function(id) {
ns <- NS(id)
tagList(
Slider.shinyInput(
inputId = ns("value"),
min = 0,
max = 10,
stepSize = 0.1,
labelStepSize = 10
),
textOutput(ns("valueOutput"))
)
}
server <- function(id) {
moduleServer(id, function(input, output, session) {
output$valueOutput <- renderText(input$value)
})
}
if (interactive()) shinyApp(ui("app"), function(input, output) server("app"))
[Package shiny.blueprint version 0.3.0 Index]