View source: R/mk-checkboxes.R
mk_checkboxes | R Documentation |
Create a group of pretty checkboxes used to toggle multiple choices independently.
mk_checkboxes(id, label = NULL, choices, selected = NULL)
id |
String. The input slot that will be used to access the value. |
label |
String. Display label/title for the checkboxes group, or NULL (default) for no label. |
choices |
Character vector. List of values to show checkboxes for. If elements of the list are named then names rather than values are displayed to the user. The values should be strings; other types (such as logicals and numbers) will be coerced to strings. |
selected |
The values that should be initially selected, if any. Default is NULL for no initial selection. |
A list of HTML elements that can be added to a UI definition.
checkbox_w_onoff_button_server
for an example of how
to use this function.
inst/examples/ex-checkboxes-allon-alloff.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.