Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

cardProfile

AdminLTE3 card profile


Description

Create card profile

Usage

cardProfile(..., src = NULL, title = NULL, subtitle = NULL)

Arguments

...

Any element such as cardProfileItemList.

src

Profile image, if any.

title

Title.

subtitle

Subtitle.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

if (interactive()) {
 library(shiny)
 library(bs4Dash)
 
 shiny::shinyApp(
   ui = bs4DashPage(
     navbar = bs4DashNavbar(),
     sidebar = bs4DashSidebar(
      bs4SidebarMenu(
       bs4SidebarHeader("Main content"),
       bs4SidebarMenuItem(
         "Profile Card",
         tabName = "profile_card",
         icon = "desktop"
       )
      )
     ),
     controlbar = bs4DashControlbar(),
     footer = bs4DashFooter(),
     title = "test",
     body = bs4DashBody(
      bs4TabItems(
       bs4TabItem(
         tabName = "profile_card",
         bs4Card(
          status = "primary",
          solidHeader = TRUE,
          cardProfile(
           src = "https://adminlte.io/themes/AdminLTE/dist/img/user4-128x128.jpg",
           title = "Nina Mcintire",
           subtitle = "Software Engineer",
           cardProfileItemList(
            bordered = TRUE,
            cardProfileItem(
             title = "Followers",
             description = 1322
            ),
            cardProfileItem(
             title = "Following",
             description = 543
            ),
            cardProfileItem(
             title = "Friends",
             description = 13287
            )
           )
          )
        )
       )
      )
     )
   ),
   server = function(input, output) {}
 )
}

bs4Dash

A 'Bootstrap 4' Version of 'shinydashboard'

v0.5.0
GPL (>= 2) | file LICENSE
Authors
David Granjon [aut, cre], RinteRface [cph], Almasaeed Studio [ctb, cph] (AdminLTE3 theme for Bootstrap 4), Winston Chang [ctb, cph] (Utils functions from shinydashboard), Thomas Park [ctb, cph] (Bootswatch Sketchy theme CSS)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.