Description Usage Arguments Value Examples
View source: R/input-checkboxgroupbuttons.R
Create buttons grouped that act like checkboxes.
1 2 3 |
inputId |
The |
label |
Input label. |
choices |
List of values to select from (if elements of the list are named then that name rather than the value is displayed to the user) |
selected |
The initially selected value. |
status |
Color of the buttons |
size |
Size of the buttons ('xs', 'sm', 'normal', 'lg') |
direction |
Horizontal or vertical. |
justified |
If TRUE, fill the width of the parent div. |
individual |
If TRUE, buttons are separated. |
checkIcon |
A list, if no empty must contain at least one element named 'yes' corresponding to an icon to display if the button is checked. |
A buttons group control that can be added to a UI definition.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
## Only run examples in interactive R sessions
if (interactive()) {
ui <- fluidPage(
checkboxGroupButtons(inputId = "somevalue", choices = c("A", "B", "C")),
verbatimTextOutput("value")
)
server <- function(input, output) {
output$value <- renderText({ input$somevalue })
}
shinyApp(ui, server)
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.