Slider value #133
RealCoChenchao
started this conversation in
General
Replies: 1 comment
-
|
we're still working on implementing this behavior - it should be available in the next version of the package. At this moment the solution would be to use library(shiny)
library(shiny.fluent)
library(magrittr)
ui <- fluentPage(
Slider.shinyInput(inputId = "slider", value = 5, min = 0, max = 10),
textOutput("value")
)
server <- function(input, output, session) {
slider_debounced <- reactive(input$slider) %>% debounce(200)
output$value <- renderText({
slider_debounced()
})
}
shinyApp(ui, server) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Love this framework and package, thank you!
A quick question about get the values from slider. Currently, I believe it runs every step from starting value to the ending value. In another word, there is a slider from 0 to 100 with step 1. If I move it from 2 to 6, value 3, 4, 5 and 6 will be picked. How can I only get the final value, which is 6 here? Is
onChangedfor this functionality?Beta Was this translation helpful? Give feedback.
All reactions