input_checkbox: Checkbox input

View source: R/input-checkbox.R

input_checkboxR 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(
  id,
  choice,
  ...,
  value = FALSE,
  disable = NULL,
  label = c("after", "before")
)

update_checkbox(
  id,
  choice = NULL,
  value = NULL,
  disable = NULL,
  session = get_current_session()
)

update_checkbox_group(
  id,
  choices = NULL,
  values = choices,
  select = NULL,
  disable = NULL,
  layout = "column",
  label = "after",
  session = get_current_session()
)

Arguments

id

A character string. The id of the reactive input.

choice

A character string. The text for the checkbox.

...

Optional named arguments specifying HTML attributes for the input element.

value

A boolean. The default value for the checkbox.

disable

A boolean. The checkbox starts disabled if TRUE.

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_group(), 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.