View source: R/input-checkbox.R
input_checkbox | R Documentation |
A reactive checkbox input. Users may select one or more choices. When a
checkbox input has no selected choices the reactive value is NULL
.
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()
)
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 |
label |
A character string. The placement of a label relative to its checkbox. |
session |
A shiny session object. |
A named logical vector.
A shiny tag object.
Other inputs:
fileInput()
,
input_button()
,
input_checkbox_group()
,
input_chip()
,
input_form()
,
input_list_group()
,
input_menu()
,
input_radio_group()
,
radiobarInput()
,
rangeInput()
,
selectInput()
,
textInput()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.