| dashboardPagePlus {shinydashboardPlus} | R Documentation |
This creates a dashboard page for use in a Shiny app.
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,
sidebar_background = NULL, enable_preloader = FALSE,
loading_duration = 2)
header |
A header created by |
sidebar |
A sidebar created by |
body |
A body created by |
rightsidebar |
A right sidebar created by |
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
|
skin |
A color theme. One of |
collapse_sidebar |
Whether to collapse the left sidebar. TRUE by default. |
sidebar_background |
Main sidebar background color: either "light" or NULL. NULL by default. |
enable_preloader |
Whether to enable a page loader. FALSE by default. |
loading_duration |
Loader duration in seconds. 2s by default. |
dashboardHeaderPlus, dashboardSidebar,
dashboardBody.
if (interactive()) {
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
shinyApp(
ui = dashboardPagePlus(
header = dashboardHeaderPlus(
enable_rightsidebar = TRUE,
rightSidebarIcon = "gears"
),
sidebar = dashboardSidebar(),
body = dashboardBody(),
rightsidebar = rightSidebar(),
title = "DashboardPage"
),
server = function(input, output) { }
)
}