rangeInput: Range input

View source: R/input-range.R

rangeInputR Documentation

Range input

Description

rangeInput() creates a simple numeric range input.

Usage

rangeInput(id, min = 0, max = 100, default = min, step = 1, ...)

updateRangeInput(
  id,
  value = NULL,
  enable = NULL,
  disable = NULL,
  session = getDefaultReactiveDomain()
)

Arguments

id

A character string. The id of the reactive input.

min

A number specifying the minimum value of the input, defaults to 0.

max

A number specifying the maximum value of the input, defaults to 100.

default

A number between min and max specifying the default value of the input, defaults to min.

step

A number specifying the interval step of the input, defaults to 1.

...

Optional named arguments specifying HTML attributes for the input element.

value

A number specifying a new value for the input, defaults to NULL.

disable

A boolean. The checkbox starts disabled if TRUE.

session

A shiny session object.

Details

The sophistication of this input will improve as browsers adopt the latest HTML standards.

See Also

Other inputs: fileInput(), input_button(), input_checkbox(), input_checkbox_group(), input_chip(), input_form(), input_list_group(), input_menu(), input_radio_group(), radiobarInput(), selectInput(), textInput()


nteetor/dull documentation built on July 4, 2025, 8:52 a.m.