Create a tagList of checkboxes using the checkboxUI wrapper for shiny::checkboxInput.
1 2 |
ids |
String id for the checkboxes. If your code is modularised, remember to wrap the id with the relevant session namespace function, e.g. checkboxUIs(id = sapply(c("someinput", "anotherinput", session$ns))). |
labels |
Labels for the checkboxes. |
widths |
The widths of the checkboxes. Must be valid css (i.e. "10%" or "150px" will work; see shiny::validateCssUnit). To use the same width on all checkboxes, provide a single-text string or a vector with one text string. To use different widths for each checkbox, provide a vector of custom css text strings with one element per action button. |
custom_css |
If provided, the checkboxes are wrapped in divs each styled by the custom_css input. For example, when creating multiple checkboxes one could provide custom_css = "display: inline-block;" to display them inline. To use the same style on all checkboxes, provide a single-text string or single-element vector. To use different styles for each checkbox, provide a vector of custom css text strings with one element per checkbox. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.