Learn R Programming

shinyMobile (version 0.7.0)

f7checkBox: Create a F7 Checkbox

Description

Create a F7 Checkbox

Usage

f7checkBox(inputId, label, value = FALSE)

Arguments

inputId

The input slot that will be used to access the value.

label

Display label for the control, or NULL for no label.

value

Initial value (TRUE or FALSE).

Examples

Run this code
# NOT RUN {
if(interactive()){
 library(shiny)
 library(shinyMobile)

 shiny::shinyApp(
   ui = f7Page(
    title = "My app",
    f7SingleLayout(
     navbar = f7Navbar(title = "f7checkBox"),
     f7Card(
      f7checkBox(
       inputId = "check",
       label = "Checkbox",
       value = FALSE
      ),
      verbatimTextOutput("test")
     )
    )
   ),
   server = function(input, output) {
    output$test <- renderPrint({input$check})
   }
 )
}
# }

Run the code above in your browser using DataLab