View source: R/conditionalNumericRangeInput.R
conditionalNumericRangeInput | R Documentation |
This input will display either a single input box or a range input, depending on whether it is selected in a trigger variable. It always returns both the point and the range; 'reactivePointRange()' to choose the one currently displayed in the UI.
conditionalNumericRangeInput( id, label, value, value2, trigger, ns = NS(NULL), min = NA, max = NA, step = NA, sep = " to " )
id |
The element ID |
label |
A label for the UI element |
value |
'[numeric(1)]' The initial "point" value |
value2 |
'[numeric(2)]' The initial "range" value |
trigger |
'[character(1)]' The variable that triggers the switch between point and range |
ns |
The session namespace |
min |
The minimum allowable value of the inputs |
max |
The maximum allowable value of the inputs |
step |
The step size |
sep |
The separator between the range input boxes |
A UI element
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.