
Last chance! 50% off unlimited learning
Sale ends in
Create a dashboard user profile.
dashboardUser(
...,
name = NULL,
src = NULL,
title = NULL,
subtitle = NULL,
footer = NULL
)
Body content. Slot for dashboardUserItem.
User name.
User profile picture.
A title.
A subtitle.
Footer is any.
userOutput
and renderUser
for
dynamically-generating dashboardUser
.
# 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 = "https://dropbox.com",
type = "dropbox"
)
),
dashboardUserItem(
width = 6,
socialButton(
url = "https://github.com",
type = "github"
)
)
)
)
})
}
)
}
# }
Run the code above in your browser using DataLab