userList | R Documentation |
userList creates a user list container to be inserted in a box.
userListItem creates a user list item.
userList(...)
userListItem(image, title, subtitle = NULL)
... |
slot for userListItem. |
image |
image url or path. |
title |
Item title. |
subtitle |
Item subtitle. |
David Granjon, dgranjon@ymail.com
if (interactive()) {
library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
box(
title = "User List example",
status = "success",
userList(
userListItem(
image = "https://adminlte.io/themes/v3/dist/img/user1-128x128.jpg",
title = "Shiny",
subtitle = "Package 1"
),
userListItem(
image = "https://adminlte.io/themes/v3/dist/img/user8-128x128.jpg",
title = "Tidyverse",
subtitle = "Package 2"
),
userListItem(
image = "https://adminlte.io/themes/v3/dist/img/user7-128x128.jpg",
title = "tidyr",
subtitle = "Package 3"
)
)
)
),
title = "User List"
),
server = function(input, output) { }
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.