listGroupInput: List group inputs

View source: R/input-list-group.R

listGroupInputR Documentation

List group inputs

Description

List group inputs are an actionable list of items. They behave similarly to checkboxes or radios, that is, users may select one or more items from the list. However, list group items may include highly variable content.

Usage

listGroupInput(
  ...,
  id,
  choices = NULL,
  values = choices,
  selected = NULL,
  layout = "vertical",
  flush = FALSE
)

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

Arguments

choices

A vector of character strings or list of tag elements specifying the content of the list group's items.

values

A character vector specifying the values of the list items, defaults to choices.

selected

One or more of values specifying which choices are selected by default, defaults to NULL, in which case no choice is selected.

layout

A responsive argument. One of "vertical" or "horizontal" specifying how list items are laid out, defaults to "vertical". Note, if layout is "horizontal" and the flush argument is ignored.

flush

One of TRUE or FALSE specifying if the list group is rendered without an outside border, defaults to FALSE. Removing the list group border is useful when rendering a list group inside a custom parent container, e.g. inside a card().

See Also

Other inputs: checkbarInput(), chipInput(), fileInput(), formInput(), input_button(), input_checkbox(), menuInput(), radioInput(), radiobarInput(), rangeInput(), selectInput(), textInput()


nteetor/yonder documentation built on June 12, 2025, 3:49 a.m.