Provides server logic for the orNumeric module.
orNumeric(
input,
output,
session,
choices,
value,
label = "Column",
step = 100,
stepsize = NULL,
min. = shiny::reactive(min(choices_r(), na.rm = TRUE)),
max. = shiny::reactive(max(choices_r(), na.rm = TRUE)),
label.slider = NULL,
zoomable = TRUE,
reset = NULL
)
Shiny's input object.
Shiny's output object.
Shiny's session object.
A list or a numeric vector with the possible choices offered in the UI. See sliderInput
(Supports reactive).
Initial value of the slider. Creates a ranged slider if numeric vector of two given (Supports reactive).
Label of the entire module.
Number of steps on interval (Default = 100).
Value defining interval size of the slider. Will be used instead of step (Default = NULL).
Minimum value that can be selected on slider (defaults to min(choices)) (Supports reactive).
Maximum value that can be selected on slider (defaults to max(choices)) (Supports reactive).
A character vector of length one with the label for the sliderInput
.
Boolean to enable zooming. Redefine the sliders range. Defaults to TRUE.
A reactive which will trigger a module reset on change.
Returns a reactive containing a named list with the label, the selected choices as a character vector (text), a boolean vector of length length(choices)
(bool), and a vector of the selected value(s) (value), indicating whether a item has been chosen. If no item has been chosen, the return is TRUE
for items.