dashboard_body {semantic.dashboard} | R Documentation |
Create a body of a dashboard.
Description
Create a body of a dashboard with tabs and other additional UI elements.
Usage
dashboard_body(..., class = "")
dashboardBody(..., class = "")
Arguments
... |
UI elements to include within the body. |
class |
CSS class to be applied to the container of |
Value
A tab that can be passed to dashboardPage
Functions
-
dashboardBody
: Create a body of a dashboard (alias fordashboard_body
for compatibility withshinydashboard
)
Examples
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)
}
[Package semantic.dashboard version 0.2.1 Index]