orNumeric: orNumeric module server logic

Description Usage Arguments Value

View source: R/orNumeric.R

Description

Provides server logic for the orNumeric module.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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
)

Arguments

input

Shiny's input object.

output

Shiny's output object.

session

Shiny's session object.

choices

A list or a numeric vector with the possible choices offered in the UI. See sliderInput (Supports reactive).

value

Initial value of the slider. Creates a ranged slider if numeric vector of two given (Supports reactive).

label

Label of the entire module.

step

Number of steps on interval (Default = 100).

stepsize

Value defining interval size of the slider. Will be used instead of step (Default = NULL).

min.

Minimum value that can be selected on slider (defaults to min(choices)) (Supports reactive).

max.

Maximum value that can be selected on slider (defaults to max(choices)) (Supports reactive).

label.slider

A character vector of length one with the label for the sliderInput.

zoomable

Boolean to enable zooming. Redefine the sliders range. Defaults to TRUE.

reset

A reactive which will trigger a module reset on change.

Value

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.


loosolab/wilson documentation built on Nov. 16, 2021, 3:21 p.m.