Slider
Description
Create a slider for selecting a number.
Usage
bc_slider(
min,
max,
value,
...,
disabled = FALSE,
id = NULL,
label = NULL,
description = NULL,
oninput = NULL,
aria_label = NULL
)
Arguments
| Argument | Description |
|---|---|
min |
Whole number. The smallest value. |
max |
Whole number. The largest value. |
value |
Whole number. The starting value. |
... |
Extra tag attributes for the slider. |
disabled |
Bool. Whether the slider is disabled. Defaults to FALSE. |
id |
String. The input ID. Defaults to a random ID. |
label |
String or tag. A visible label. |
description |
String or tag. Helper text shown under the label. |
oninput |
String. JavaScript to run when the value changes. |
aria_label |
String. Accessible name for the slider. Set it when there is no label. |
Value
An htmltools tag.
Examples
bc_slider(0, 100, 50, aria_label = "Volume")
bc_slider(
min = 0,
max = 100,
value = 50,
label = "Temperature",
description = "Adjust the temperature setting"
)
Adjust the temperature setting