dashboardPage: yg dashboard page

Description Usage Arguments See Also Examples

View source: R/dashboardPage.R

Description

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

Usage

1
2
3
4
dashboardPage(header, sidebar, body, footer, controlbar, title = NULL,
  skin = c("blue", "blue-light", "black", "black-light", "purple",
  "purple-light", "green", "green-light", "red", "red-light", "yellow",
  "yellow-light"))

Arguments

header

A header created by dashboardHeader.

sidebar

A sidebar created by dashboardSidebar.

body

A body created by dashboardBody.

footer

A footer created by dashboardFooter.

controlbar

A controlbar created by dashboardControlbar.

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 dashboardHeader.

skin

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

See Also

dashboardHeader, dashboardSidebar, dashboardBody.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Only run this example in interactive R sessions
if (interactive()) {
# Basic dashboard page template
library(shiny)
shinyApp(
  ui = dashboardPage(
    header = dashboardHeader(),
    sidebar = dashboardSidebar(),
    body = dashboardBody(),
    footer = dashboardFooter(),
    controlbar = dashboardControlbar(),
    title = "Dashboard example"
  ),
  server = function(input, output) { }
)
}

gyang274/ygdashboard documentation built on Jan. 6, 2018, 12:50 a.m.