Create a Boostrap 4 dashboard dropdown menu
Build an adminLTE3 dashboard dropdown menu
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" )
... |
Slot for bs4DropdownMenuItem. |
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") |
David Granjon, dgranjon@ymail.com
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) {} ) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.