bs4UserCard: AdminLTE3 widget user card

Description Usage Arguments Author(s) Examples

View source: R/cards.R

Description

Create widget user card

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
bs4UserCard(
  ...,
  type = NULL,
  src = NULL,
  elevation = NULL,
  imageElevation = NULL,
  status = c("primary", "warning", "danger", "info", "success"),
  title = NULL,
  subtitle = NULL,
  width = 6
)

Arguments

...

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.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

 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) {}
 )
}

RX-PBB/bs4Mash documentation built on April 11, 2020, 12:15 a.m.