Description Usage Arguments Author(s) Examples
Create widget user box
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
... |
body content. |
title |
box title. |
subtitle |
box subtitle. |
type |
NULL by default. Choose the value 2 to try another skin. |
background |
Whether to enable a background image in the box header. |
backgroundUrl |
image url, if any. Background needs to be TRUE. |
src |
header image, if any (this is different of the background image). |
color |
background color: see here for a list of valid colors https://adminlte.io/themes/AdminLTE/pages/UI/general.html. |
footer |
box footer. |
footer_padding |
TRUE by default: whether the footer has margin or not. |
width |
box width (between 1 and 12). |
height |
box height. |
boxToolSize |
size of the toolbox: choose among "xs", "sm", "md", "lg". |
collapsible |
If TRUE, display a button in the upper right that allows the user to collapse the box. |
collapsed |
If TRUE, start collapsed. This must be used with |
closable |
If TRUE, display a button in the upper right that allows the user to close the box. |
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 | if (interactive()) {
library(shiny)
library(shinydashboard)
shinyApp(
ui = dashboardPage(
dashboardHeader(),
dashboardSidebar(),
dashboardBody(
widgetUserBox(
title = "Nadia Carmichael",
subtitle = "lead Developer",
type = 2,
src = "https://adminlte.io/themes/AdminLTE/dist/img/user7-128x128.jpg",
color = "yellow",
"Some text here!",
footer = "The footer here!"
),
widgetUserBox(
title = "Alexander Pierce",
subtitle = "Founder & CEO",
type = NULL,
src = "https://adminlte.io/themes/AdminLTE/dist/img/user1-128x128.jpg",
color = "aqua-active",
closable = TRUE,
"Some text here!",
footer = "The footer here!"
),
widgetUserBox(
title = "Elizabeth Pierce",
subtitle = "Web Designer",
type = NULL,
src = "https://adminlte.io/themes/AdminLTE/dist/img/user3-128x128.jpg",
background = TRUE,
backgroundUrl = "https://www.planwallpaper.com/static/images/744081-background-wallpaper.jpg",
closable = TRUE,
"Some text here!",
footer = "The footer here!"
)
),
title = "widgetUserBox"
),
server = function(input, output) { }
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.