Learn R Programming

shinydashboardPlus (version 0.2)

dashboardPagePlus: Dashboard Page with a right sidebar

Description

This creates a dashboard page for use in a Shiny app.

Usage

dashboardPagePlus(header, sidebar, body, rightsidebar = NULL, title = NULL,
  skin = c("blue", "blue-light", "black", "black-light", "purple",
  "purple-light", "green", "green-light", "red", "red-light", "yellow",
  "yellow-light"), collapse_sidebar = FALSE)

Arguments

header

A header created by dashboardHeaderPlus.

sidebar

A sidebar created by dashboardSidebar.

body

A body created by dashboardBody.

rightsidebar

A right sidebar created by rightSidebar. NULL by default.

title

A title to display in the browser's title bar. If no value is provided, it will try to extract the title from the dashboardHeaderPlus.

skin

A color theme. One of "blue", "black", "purple", "green", "red", or "yellow".

collapse_sidebar

Whether to collapse the left sidebar. TRUE by default.

See Also

dashboardHeaderPlus, dashboardSidebar, dashboardBody.

Examples

Run this code
# NOT RUN {
if (interactive()) {
library(shiny)
shinyApp(
  ui = dashboardPagePlus(
    header = dashboardHeaderPlus(
     enable_rightsidebar = TRUE,
     rightSidebarIcon = "gears"
    ),
    sidebar = dashboardSidebar(),
    body = dashboardBody(),
    rightsidebar = rightSidebar(),
    title = "DashboardPage"
  ),
  server = function(input, output) { }
)
}
# }

Run the code above in your browser using DataLab