dashboard_body: Create a body of a dashboard.

Description Usage Arguments Value Functions Examples

View source: R/semantic_dashboard.R

Description

Create a body of a dashboard with tabs and other additional UI elements.

Usage

1
2
3

Arguments

...

UI elements to include within the body.

class

CSS class to be applied to the container of dashboardBody. Note it's not the <body> tag.

Value

A tab that can be passed to dashboardPage

Functions

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
if(interactive()){

  library(shiny)
  library(semantic.dashboard)

  ui <- dashboardPage(
    dashboardHeader(color = "blue"),
    dashboardSidebar(side = "left", size = "thin", color = "teal",
                     sidebarMenu(
                       menuItem(tabName = "tab1", "Tab 1"),
                       menuItem(tabName = "tab2", "Tab 2"))),
    dashboardBody(tabItems(
      tabItem(tabName = "tab1", p("Tab 1")),
      tabItem(tabName = "tab2", p("Tab 2"))))
  )

  server <- function(input, output) {
  }

  shinyApp(ui, server)
}

PaskalSunari/semantic.dashboard-develop documentation built on Dec. 18, 2021, 6:41 a.m.