Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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) {}
 )
}

bs4Dash

A 'Bootstrap 4' Version of 'shinydashboard'

v0.5.0
GPL (>= 2) | file LICENSE
Authors
David Granjon [aut, cre], RinteRface [cph], Almasaeed Studio [ctb, cph] (AdminLTE3 theme for Bootstrap 4), Winston Chang [ctb, cph] (Utils functions from shinydashboard), Thomas Park [ctb, cph] (Bootswatch Sketchy theme CSS)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.