inst/examples/extra_css_tab.R

extra_css_tab <- tabItem(
  tabName = "extracss",
  
  br(),
  
  column(
    width = 12,
    align = "center",
    h1("Add shadows to any dashboard element: setShadow()")
  ),
  br(),
  
  fluidRow(
    column(
      width = 6,
      setShadow("box"),
      box(
        width = 12,
        background = "light-blue",
        p("This is content. The background color is set to light-blue")
      )
    ),
    
    column(
      width = 6,
      aceEditor(
        theme = "dracula",
        mode = "r",
        height = "100px",
        outputId = "box-shadow_code",
        readOnly = TRUE,
        value = paste(
          style_text(
            'setShadow("box")
             box(
               width = 12,
               background = "light-blue",
               p("This is content. The background color is set to light-blue")
             )'
          ), 
          collapse = "\n"
        )
      )
    )
  )
)

Try the shinydashboardPlus package in your browser

Any scripts or data that you put into this service are public.

shinydashboardPlus documentation built on Sept. 16, 2021, 1:06 a.m.