This creates a right sidebar.
dashboardControlbar( ..., id = NULL, disable = FALSE, width = 230, collapsed = TRUE, overlay = TRUE, skin = "dark", .items = NULL )
... | slot for controlbarMenu. Not compatible with .items. |
---|---|
id | To access the current state of the controlbar. Open is TRUE, closed is FALSE. NULL by default. |
disable | If |
width | Sidebar width in pixels. Numeric value expected. 230 by default. |
collapsed | Whether the control bar on the right side is collapsed or not at start. TRUE by default. |
overlay | Whether the sidebar covers the content when expanded. Default to TRUE. |
skin | background color: "dark" or "light". |
.items | Pass element here if you do not want to embed them in panels. Not compatible with ... |
Until a maximum of 5 controlbarItem! AdminLTE 2 does not support more panels.
David Granjon, dgranjon@ymail.com
if (interactive()) { library(shiny) library(shinydashboard) library(shinydashboardPlus) shinyApp( ui = dashboardPage( header = dashboardHeader(), sidebar = dashboardSidebar(), body = dashboardBody(), controlbar = dashboardControlbar( skin = "dark", controlbarMenu( id = "menu", controlbarItem( "Tab 1", "Welcome to tab 1" ), controlbarItem( "Tab 2", "Welcome to tab 2" ) ) ), title = "Right Sidebar" ), server = function(input, output) { } ) }