View source: R/widget-controls.R
| checkbox | R Documentation |
A labelled toggle. Space, Enter or a click toggles it and sends
"checkbox.changed" (event$data$value).
checkbox(
label = "",
value = FALSE,
id = NULL,
classes = NULL,
style = NULL,
disabled = FALSE
)
label |
Label text. |
value |
Initial state. |
id |
Optional identifier. |
classes |
Optional classes. |
style |
A |
disabled |
Disabled checkboxes cannot be toggled. |
A Checkbox widget with a reactive value.
checkbox("Enable logs", value = TRUE, id = "logs")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.