View source: R/input-checkbox.R
input_checkbox | R Documentation |
Reactive checkbox and checkbar inputs. Users may select one or more choices.
The checkbox input appears as a standard checkbox or set of checkboxes. When
a checkbox input has no selected choices the reactive value is NULL
. Switch
inputs differ from checkboxes only in appearance.
input_checkbox(
id,
choices = NULL,
values = choices,
selected = NULL,
inline = FALSE,
...
)
input_checkbox_button(id, choices, values = choices, selected = NULL, ...)
id |
A character string specifying the id of the reactive input. |
choices |
A character string or vector specifying a label or labels for the checkbox or checkbar. |
values |
A character string or vector specifying values for the
checkbox or checkbar input, defaults to |
selected |
One or more of |
inline |
One of |
... |
Additional named arguments passed as HTML attributes to the parent element or tag elements passed as child elements to the parent element. |
disable |
One of |
session |
A reactive context, defaults to |
Other inputs:
checkbarInput()
,
chipInput()
,
fileInput()
,
formInput()
,
input_button()
,
listGroupInput()
,
menuInput()
,
radioInput()
,
radiobarInput()
,
rangeInput()
,
selectInput()
,
textInput()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.