View source: R/conditionalSliderRangeInput.R
conditionalSliderRangeInput | R Documentation |
This input will display a slider with either a single or a double handle, depending on whether it is selected in a trigger variable. It always returns both the point (single) and the range (double) values; use 'reactivePointRange()' to choose the one currently displayed in the UI.
conditionalSliderRangeInput( id, label, value, value2, trigger, ns = NS(NULL), min = NA, max = NA, step = NA, prefix = NULL, suffix = NULL )
id |
The input element ID |
label |
The input element label |
value |
'[numeric(1)]' The point value for the single handle |
value2 |
'[numeric(2)]' The range of the double handles |
trigger |
'[character(1)]' The trigger variable |
ns |
The shiny session namespace |
min |
The minimum slider value |
max |
The maximum slider value |
step |
The step size of the slider |
prefix |
A prefix to prepend to the value labels |
suffix |
A suffix to append to the value labels |
A UI element
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.