Description Usage Arguments Author(s) Examples
Create widget user card
1 2 3 4 5 6 7 8 9 10 11 |
... |
Footer content. |
type |
User card type. Either NULL or 2. |
src |
User image url or path. |
elevation |
User card elevation (numeric). NULL by default. |
imageElevation |
User card image elevation (numeric). NULL by default. |
status |
User card color. "primary", "warning", "danger", "info" or "success". |
title |
User card title. |
subtitle |
User card subtitle. |
width |
The width of the card, using the Bootstrap grid system. |
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | if(interactive()){
library(shiny)
library(bs4Dash)
shiny::shinyApp(
ui = bs4DashPage(
navbar = bs4DashNavbar(),
sidebar = bs4DashSidebar(),
controlbar = bs4DashControlbar(),
footer = bs4DashFooter(),
title = "test",
body = bs4DashBody(
fluidRow(
bs4UserCard(
src = "https://adminlte.io/themes/AdminLTE/dist/img/user1-128x128.jpg",
status = "info",
title = "User card type 1",
subtitle = "a subtitle here",
elevation = 4,
"Any content here"
),
bs4UserCard(
type = 2,
src = "https://adminlte.io/themes/AdminLTE/dist/img/user7-128x128.jpg",
status = "success",
imageElevation = 4,
title = "User card type 2",
subtitle = "a subtitle here",
bs4ProgressBar(
value = 5,
striped = FALSE,
status = "info"
),
bs4ProgressBar(
value = 5,
striped = TRUE,
status = "warning",
width = "20%"
)
)
)
)
),
server = function(input, output) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.