num_input2: Wrap 'conditionalNumericRangeInput()' for Ease of Use

View source: R/mod_profiling_input.R

num_input2R Documentation

Wrap 'conditionalNumericRangeInput()' for Ease of Use

Description

Wraps the 'conditionalNumericRangeInput()' defined elsewhere in covidscreen for brevity.

Usage

num_input2(
  id,
  label,
  value,
  value2,
  min = 0,
  max = NA,
  step = 1,
  trigger = "x_var",
  br = TRUE
)

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

min

The minimum allowable value of the inputs

max

The maximum allowable value of the inputs

step

The step size

trigger

'[character(1)]' The variable that triggers the switch between point and range

br

Add a line break below the input element

Value

A UI element


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