Learn R Programming

bs4Dash (version 0.2.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)

Arguments

navbar

Bootstrap 4 dashboard navbar.

sidebar

Bootstrap 4 dashboard main sidebar.

body

Bootstrap 4 dashboard body wrapper.

controlbar

Bootstrap 4 dashboard control sidebar (right side).

footer

Bootstrap 4 dashboard footer.

title

App title.

old_school

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

sidebar_collapsed

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

Examples

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

 shiny::shinyApp(
   ui = bs4DashPage(
    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