djpr_page | R Documentation |
shiny::fluidPage()
with the DJPR themeUse in place of shiny::fluidPage()
.
djpr_page(
title,
...,
col_widths = c(2, 8, 2),
logo = file.path("djprshiny", "spp_data_logo.png"),
logo_style = "float:right;width:83px;height:20px;padding-top:0px;",
lang = "en"
)
title |
Dashboard title, such as "DJPR Labour Dashboard" |
... |
content to include within the |
col_widths |
Numeric vector of length 3; must sum to 12. Second element of vector defines width of main content. |
logo |
Filename for logo, which will be placed at RHS of navbar.
File should be included in the |
logo_style |
CSS to style the logo. |
lang |
language code |
Structured as a navbarPage()
. Provides option to include a table of
contents, which must be further defined within individual tabPanel
(s) -
see ?toc_row
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.