Description Usage Arguments See Also Examples
View source: R/dashboardPage.R
This creates a dashboard page for use in a Shiny app.
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"))
|
header |
A header created by |
sidebar |
A sidebar created by |
body |
A body created by |
footer |
A footer created by |
controlbar |
A controlbar 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 |
dashboardHeader
, dashboardSidebar
,
dashboardBody
.
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) { }
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.