rightSidebarMenu: AdminLTE2 right sidebar menu

Description Usage Arguments Author(s) Examples

View source: R/rightSidebar.R

Description

Create a nice right sidebar menu.

Usage

1

Arguments

...

Slot for rightsidebarMenuItem.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
if (interactive()) {
 library(shiny)
 library(shinydashboard)
 shinyApp(
   ui = dashboardPagePlus(
     header = dashboardHeaderPlus(
       enable_rightsidebar = TRUE,
       rightSidebarIcon = "gears"
     ),
     sidebar = dashboardSidebar(),
     body = dashboardBody(),
     rightsidebar = rightSidebar(
       background = "dark",
       rightSidebarTabContent(
         id = 1,
         icon = "desktop",
         title = "Tab 1",
         active = TRUE,
         rightSidebarMenu(
          rightSidebarMenuItem(
           icon = menuIcon(
            name = "birthday-cake",
            color = "red"
           ),
           info = menuInfo(
            title = "Langdon's Birthday",
            description = "Will be 23 on April 24th"
           )
          ),
          rightSidebarMenuItem(
           icon = menuIcon(
            name = "user",
            color = "yellow"
           ),
           info = menuInfo(
            title = "Frodo Updated His Profile",
            description = "New phone +1(800)555-1234"
           )
          )
         )
       ),
       rightSidebarTabContent(
         id = 2,
         title = "Tab 2",
         textInput("caption", "Caption", "Data Summary")
       ),
       rightSidebarTabContent(
         id = 3,
         icon = "paint-brush",
         title = "Tab 3",
         numericInput("obs", "Observations:", 10, min = 1, max = 100)
       )
     ),
     title = "Right Sidebar"
   ),
   server = function(input, output) { }
 )
}

dsciencelabs/shinydashboardPlus documentation built on Dec. 20, 2021, 2:10 a.m.