conditionalSliderRangeInput: Display a Point or Range Slider Based on a Trigger Input

View source: R/conditionalSliderRangeInput.R

conditionalSliderRangeInputR Documentation

Display a Point or Range Slider Based on a Trigger Input

Description

This input will display a slider with either a single or a double handle, depending on whether it is selected in a trigger variable. It always returns both the point (single) and the range (double) values; use 'reactivePointRange()' to choose the one currently displayed in the UI.

Usage

conditionalSliderRangeInput(
  id,
  label,
  value,
  value2,
  trigger,
  ns = NS(NULL),
  min = NA,
  max = NA,
  step = NA,
  prefix = NULL,
  suffix = NULL
)

Arguments

id

The input element ID

label

The input element label

value

'[numeric(1)]' The point value for the single handle

value2

'[numeric(2)]' The range of the double handles

trigger

'[character(1)]' The trigger variable

ns

The shiny session namespace

min

The minimum slider value

max

The maximum slider value

step

The step size of the slider

prefix

A prefix to prepend to the value labels

suffix

A suffix to append to the value labels

Value

A UI element


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