bs4Dash (version 0.5.0)

bs4DropdownMenu: Create a Boostrap 4 dashboard dropdown menu

Description

Build an adminLTE3 dashboard dropdown menu

Usage

bs4DropdownMenu(
  ...,
  show = FALSE,
  labelText = NULL,
  src = NULL,
  status = c("primary", "warning", "danger", "info", "success"),
  menuIcon = "bell",
  align = "right"
)

dropdownMenu( ..., show = FALSE, labelText = NULL, src = NULL, status = c("primary", "warning", "danger", "info", "success"), menuIcon = "bell", align = "right" )

Arguments

...
show

Whether to start with the dropdown open. FALSE by default.

labelText

Dropdown label text.

src

Dropdown link to an external ressource.

status

Dropdown menu status. "primary", "success", "warning", "danger" or "info".

menuIcon

Fontawesome icon (default = "bell")

align

Menu alignment (default = "right")

Examples

Run this code
# NOT RUN {
if(interactive()){
 library(shiny)
 library(bs4Dash)
 
 shiny::shinyApp(
   ui = bs4DashPage(
     navbar = bs4DashNavbar(
      rightUi = bs4DropdownMenu(
       show = TRUE,
       labelText = "!",
       status = "danger",
       src = "http://www.google.fr",
       bs4DropdownMenuItem(
        text = "message 1",
        date = "today"
       ),
       bs4DropdownMenuItem(
        text = "message 2",
        date = "yesterday"
       )
      )
     ),
     sidebar = bs4DashSidebar(),
     controlbar = bs4DashControlbar(),
     footer = bs4DashFooter(),
     title = "test",
     body = bs4DashBody()
   ),
   server = function(input, output) {}
 )
}

# }

Run the code above in your browser using DataLab