conditionalNumericRangeInput: Display a Point or Range Input Box Based on a Trigger Input

View source: R/conditionalNumericRangeInput.R

conditionalNumericRangeInputR Documentation

Display a Point or Range Input Box Based on a Trigger Input

Description

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.

Usage

conditionalNumericRangeInput(
  id,
  label,
  value,
  value2,
  trigger,
  ns = NS(NULL),
  min = NA,
  max = NA,
  step = NA,
  sep = " to "
)

Arguments

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

Value

A UI element


jesse-smith/covidscreen documentation built on June 15, 2022, 7:46 p.m.