input_checkbox_group: Checkbox input

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

input_checkbox_groupR Documentation

Checkbox input

Description

A reactive checkbox input. Users may select one or more choices. When a checkbox input has no selected choices the reactive value is NULL.

Usage

input_checkbox_group(
  id,
  choices,
  ...,
  values = choices,
  select = NULL,
  disable = NULL,
  appearance = c("default", "buttons", "switches", "list"),
  layout = c("column", "row"),
  label = c("after", "before")
)

Arguments

id

A character string. The id of the reactive input.

choices

A character vector or list. The labels for the input choices.

...

Optional named arguments specifying HTML attributes for the input element.

values

A character vector. The values for the input, defaults to choices.

select

A character vector. The values selected by default, one or more of values.

disable

A character vector. The values disabled by default.

appearance

A character string. The appearance of the input's checkboxes.

layout

A character string. The layout of the choices.

label

A character string. The placement of a label relative to its checkbox.

session

A shiny session object.

Details

Server value

A named logical vector.

Value

A shiny tag object.

See Also

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


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