Using extracted web dependencies
Now we can add the dependencies with the element to we want to use but using the fluidPage()
function.
my_dashboard_box <- function(title, status) {
tagList(
box(title = title, status = status),
dashboard_deps
)
}
library(shiny)
library(shinydashboard)
ui <- fluidPage(
tags$style("body { background-color: gainsboro; }"),
titlePanel("Shiny with a box"),
my_dashboard_box(title = "My box", status = "danger"),
)
server <- function(input, output) {}
shinyApp(ui, server)