optionalSliderInputValMinMax: For 'teal' modules we parameterize an 'optionalSliderInput'...

View source: R/optionalInput.R

optionalSliderInputValMinMaxR Documentation

For teal modules we parameterize an optionalSliderInput with one argument value_min_max

Description

[Stable] The optionalSliderInput() function needs three arguments to determine whether to hide the sliderInput widget or not. For teal modules we specify an optional slider input with one argument here called value_min_max.

Usage

optionalSliderInputValMinMax(
  inputId,
  label,
  value_min_max,
  label_help = NULL,
  ...
)

Arguments

inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

value_min_max

(numeric(1) or numeric(3))
If of length 1 then the value gets set to that number and the sliderInput will be hidden. Otherwise, if it is of length three the three elements will map to value, min and max of the optionalSliderInput() function.

label_help

(shiny.tag, optional)
an object of class shiny.tag. E.g. an object returned by shiny::helpText()

...

optional arguments to sliderInput

Value

(shiny.tag) HTML tag with range sliderInput widget.

Examples


optionalSliderInputValMinMax("a", "b", 1)
optionalSliderInputValMinMax("a", "b", c(3, 1, 5))

teal.widgets documentation built on May 29, 2024, 2:41 a.m.