Allow to apply a shadow on a given element.

setShadow(id = NULL, class = NULL)

Arguments

id

Use this argument if you want to target an individual element.

class

The element to which the shadow should be applied. For example, class is set to box.

Examples

if (interactive()) { library(shiny) library(shinydashboard) library(shinydashboardPlus) library(shinyWidgets) boxTag <- boxPlus( title = "Closable box, with label", closable = TRUE, enable_label = TRUE, label_text = 1, label_status = "danger", status = "warning", solidHeader = FALSE, collapsible = TRUE, p("Box Content") ) shinyApp( ui = dashboardPagePlus( header = dashboardHeaderPlus( enable_rightsidebar = TRUE, rightSidebarIcon = "gears" ), sidebar = dashboardSidebar(), body = dashboardBody( setShadow(class = "box"), setShadow(id = "my-progress"), tags$h2("Add shadow to the box class"), fluidRow(boxTag, boxTag), tags$h2("Add shadow only to the first element using id"), tagAppendAttributes( verticalProgress( value = 10, striped = TRUE, active = TRUE ), id = "my-progress" ), verticalProgress( value = 50, active = TRUE, status = "warning", size = "xs" ), verticalProgress( value = 20, status = "danger", size = "sm", height = "60%" ) ), rightsidebar = rightSidebar(), title = "DashboardPage" ), server = function(input, output) { } ) }