# NOT RUN {
### Range inputs
# }
# NOT RUN {
<!-- % <script> -->
# }
# NOT RUN {
<!-- % $(function() { -->
# }
# NOT RUN {
<!-- % $(".yonder-range").each(function() { -->
# }
# NOT RUN {
<!-- % $(this.querySelector("input")).ionRangeSlider(); -->
# }
# NOT RUN {
<!-- % }); -->
# }
# NOT RUN {
<!-- % }); -->
# }
# NOT RUN {
<!-- % </script> -->
# }
# NOT RUN {
# Select from a range of numeric values.
rangeInput(id = "range1") %>%
background("yellow")
### Increase the number of labels
rangeInput(
id = "range2",
default = 30,
labels = 8
) %>%
background("purple")
### Increase thumb step
# We'll hide the filled portion of the input with `fill` and change how
# tick marks are placed with `snap`.
rangeInput(
id = "range3",
step = 10, # <-
snap = TRUE,
fill = FALSE
) %>%
background("red")
### Interval inputs
# Select an interval from a range of numeric values. Intervals are draggable
# by default, this can be toggled off with `draggable = FALSE`.
intervalInput(
id = "interval1",
default = c(45, 65)
) %>%
background("blue")
# }
Run the code above in your browser using DataLab