boxProfile | R Documentation |
boxProfile goes inside a box. Displays user information in an elegant container.
boxProfileItem is an sub-element of a boxProfile.
boxProfile(..., image = NULL, title, subtitle = NULL, bordered = FALSE)
boxProfileItem(title, description)
... |
any element such as boxProfileItem. |
image |
profile image, if any. |
title |
item title. |
subtitle |
subtitle. |
bordered |
Whether the container should have a border or not. FALSE by default. |
description |
item info. |
David Granjon, dgranjon@ymail.com
# Box with boxProfile
if (interactive()) {
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
box(
title = "Box with profile",
status = "primary",
boxProfile(
image = "https://adminlte.io/themes/AdminLTE/dist/img/user4-128x128.jpg",
title = "Nina Mcintire",
subtitle = "Software Engineer",
bordered = TRUE,
boxProfileItem(
title = "Followers",
description = 1322
),
boxProfileItem(
title = "Following",
description = 543
),
boxProfileItem(
title = "Friends",
description = 13287
)
)
)
),
title = "boxProfile"
),
server = function(input, output) { }
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.