radiobarInput: Radiobar inputs

View source: R/input-radiobar.R

radiobarInputR Documentation

Radiobar inputs

Description

A stylized group of radio inputs. A radiobar input is similar to a button group, but with a checked or highlighted stated. Additionally, only one value at most may be selected at any given time.

Usage

radiobarInput(..., id, choices, values = choices, selected = values[[1]])

updateRadiobarInput(
  id,
  choices = NULL,
  values = choices,
  selected = NULL,
  enable = NULL,
  disable = NULL,
  session = getDefaultReactiveDomain()
)

Arguments

...

Optional named arguments specifying HTML attributes for the input element.

id

A character string. The id of the reactive input.

choices

A character vector or list of tag elements specifying the labels of the input's choices.

values

A vector specifying the values of the input's choices, defaults to choices.

selected

One of values specifying the input's default selected choice, defaults to values[[1]].

disable

A boolean. The checkbox starts disabled if TRUE.

session

A shiny session object.

See Also

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


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