bs4Dash (version 0.5.0)

bs4UserMenu: Create a Bootstrap 4 user profile.

Description

Create a Bootstrap 4 user profile.

Usage

bs4UserMenu(
  ...,
  name = NULL,
  src = NULL,
  title = NULL,
  subtitle = NULL,
  footer = NULL,
  status = c("primary", "danger", "success", "warning", "info", "secondary")
)

Arguments

...

Body content.

name

User name.

src

User profile picture.

title

A title.

subtitle

A subtitle.

footer

Footer is any.

status

Ribbon status: "primary", "danger", "success", "warning", "info" and "secondary".

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(bs4Dash)
 
 shinyApp(
  ui = dashboardPage(
    navbar = dashboardHeader(
      rightUi = bs4UserMenu(
       name = "Divad Nojnarg", 
       status = "primary",
       src = "https://adminlte.io/themes/AdminLTE/dist/img/user2-160x160.jpg", 
       title = "bs4Dash",
       subtitle = "Author", 
       footer = p("The footer", class = "text-center"),
       "This is the menu content."
      )
    ),
    sidebar = dashboardSidebar(),
    body = dashboardBody(),
    title = "bs4UserMenu"
  ),
  server = function(input, output) {}
 )
}

# }

Run the code above in your browser using DataCamp Workspace