# NOT RUN {
if (interactive()) {
library("shiny")
library("shinyWidgets")
ui <- fluidPage(
# Default
panel(
"Content goes here",
checkboxInput(inputId = "id1", label = "Label")
),
# With header and footer
panel(
"Content goes here",
checkboxInput(inputId = "id2", label = "Label"),
heading = "My title",
footer = "Something"
),
# With status
panel(
"Content goes here",
checkboxInput(inputId = "id3", label = "Label"),
heading = "My title",
status = "primary"
)
)
server <- function(input, output, session) {
}
shinyApp(ui = ui, server = server)
}
# }
Run the code above in your browser using DataLab