Learn R Programming

bs4Dash (version 0.3.0)

bs4DashPage: Create a Boostrap 4 dashboard page

Description

Build an adminLTE3 dashboard page

Usage

bs4DashPage(navbar = NULL, sidebar = NULL, body = NULL,
  controlbar = NULL, footer = NULL, title = NULL,
  old_school = FALSE, sidebar_collapsed = FALSE,
  controlbar_collapsed = TRUE, enable_preloader = FALSE,
  loading_duration = 2, loading_background = "#1E90FF")

Arguments

navbar

Slot for bs4DashNavbar.

sidebar

Slot for bs4DashSidebar.

body

Slot for bs4DashBody.

controlbar

Slot for bs4DashControlbar (right side).

footer

Slot for bs4DashFooter.

title

App title.

old_school

Whether to use the wonderful sketchy design for Bootstrap 4. FALSE by default.

sidebar_collapsed

Whether the sidebar is collapsed of not at start. FALSE by default.

controlbar_collapsed

Whether the sidebar is collapsed of not at start. TRUE by default.

enable_preloader

Whether to enable a page loader. FALSE by default.

loading_duration

Loader duration in seconds. 2s by default.

loading_background

Background color during page startup. Blue by default: https://www.w3schools.com/cssref/css_colors.asp.

Examples

Run this code
# NOT RUN {
if(interactive()){
 library(shiny)
 library(bs4Dash)

 shiny::shinyApp(
   ui = bs4DashPage(
    enable_preloader = TRUE,
    navbar = bs4DashNavbar(),
    sidebar = bs4DashSidebar(),
    controlbar = bs4DashControlbar(),
    footer = bs4DashFooter(),
    title = "test",
    body = bs4DashBody()
   ),
   server = function(input, output) {}
 )
}

# }

Run the code above in your browser using DataLab