shinydashboardPlus (version 0.7.0)

dashboardUser: Create a dashboard user profile.

Description

Create a dashboard user profile.

Usage

dashboardUser(..., name = NULL, src = NULL, title = NULL,
  subtitle = NULL, footer = NULL)

Arguments

...

Body content. Slot for dashboardUserItem.

name

User name.

src

User profile picture.

title

A title.

subtitle

A subtitle.

footer

Footer is any.

See Also

userOutput and renderUser for dynamically-generating dashboardUser.

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(shinyWidgets)
 library(shinydashboard)
 library(shinydashboardPlus)
 
 shinyApp(
  ui = dashboardPagePlus(
    header = dashboardHeaderPlus(
      enable_rightsidebar = TRUE,
      rightSidebarIcon = "gears",
      left_menu = NULL,
      userOutput("user")
    ),
    sidebar = dashboardSidebar(),
    body = dashboardBody(),
    rightsidebar = rightSidebar(),
    title = "DashboardPage"
  ),
  server = function(input, output) {
   output$user <- renderUser({
    dashboardUser(
       name = "Divad Nojnarg", 
       src = "https://adminlte.io/themes/AdminLTE/dist/img/user2-160x160.jpg", 
       title = "shinydashboardPlus",
       subtitle = "Author", 
       footer = p("The footer", class = "text-center"),
       fluidRow(
        dashboardUserItem(
         width = 6,
         socialButton(
          url = "http://dropbox.com",
          type = "dropbox"
         )
        ),
        dashboardUserItem(
         width = 6,
         socialButton(
          url = "http://github.com",
          type = "github"
         )
        )
       )
      )
   })
  }
 )
}

# }

Run the code above in your browser using DataLab