djpr_page: Create a 'shiny::fluidPage()' with the DJPR theme

View source: R/djpr_page.R

djpr_pageR Documentation

Create a shiny::fluidPage() with the DJPR theme

Description

Use in place of shiny::fluidPage().

Usage

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"
)

Arguments

title

Dashboard title, such as "DJPR Labour Dashboard"

...

content to include within the navbarPage(). The content should typically be one or more tabPanels.

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 www folder of the Shiny app. If NULL, no logo is displayed. Default is included with this package.

logo_style

CSS to style the logo.

lang

language code

Details

Structured as a navbarPage(). Provides option to include a table of contents, which must be further defined within individual tabPanel(s) - see ?toc_row.


djpr-data/djprshiny documentation built on May 14, 2023, 1:15 p.m.