View source: R/checkboxes-allon-alloff.R
checkboxes_allon_alloff_server | R Documentation |
The server component of the Shiny module for creating a group of pretty checkboxes with an all-on and an all-off control buttons.
checkboxes_allon_alloff_server(
id,
label = NULL,
choices,
init_checked = choices
)
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 that name rather than the value is displayed to the user. The values should be strings; other types (such as logicals and numbers) will be coerced to strings. |
init_checked |
Character vector. List of values checked initially when displaying the group of checkboxes for the first time. Default is to have all choices checked initally. |
A module server function that can be called in a reactive env.
checkboxes_allon_alloff_ui
for the UI, and
mk_checkboxes
for how the group checkboxes are made.
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.