Learn R Programming

bs4Dash (version 0.2.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"))

Arguments

...

Slot for bs4Notification or bs4Message.

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".

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