Description Usage Arguments Value Examples
Create a Font Awesome Bootstrap checkbox that can be used to specify logical values.
1 2 | awesomeCheckbox(inputId, label, value = FALSE, status = "primary",
width = NULL)
|
inputId |
The |
label |
Input label. |
value |
Initial value (TRUE or FALSE). |
status |
Color of the buttons |
width |
The width of the input |
A checkbox control that can be added to a UI definition.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
## Only run examples in interactive R sessions
if (interactive()) {
ui <- fluidPage(
awesomeCheckboxGroup(
inputId = "Id001",
label = "Checkboxes with status",
choices = c("A", "B", "C"),
inline = TRUE, status = "danger"
),
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.