tablerAvatar: Create a Boostrap 4 avatar

Description Usage Arguments Author(s) Examples

Description

Build a tabler avatar

Usage

1
2
tablerAvatar(name = NULL, url = NULL, size = NULL, status = NULL,
  color = NULL)

Arguments

name

Avatar placeholder. If not NULL, url cannot be used.

url

Avatar image if any. If not NULL, name cannot be used.

size

Avatar size. NULL, "sm", "md", "lg", "xl" or "xxl".

status

Avatar status. See https://preview.tabler.io/docs/colors.html for valid statuses.

color

Avatar background color. See https://preview.tabler.io/docs/colors.html for valid colors.

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
if(interactive()){
 library(shiny)
 library(tablerDash)

 shiny::shinyApp(
   ui = tablerDashPage(
    navbar = NULL,
    footer = NULL,
    title = "test",
    body = tablerDashBody(
     tablerAvatar(
      name = "DG",
      size = "xxl"
     ),
     tablerAvatar(
      name = "DG",
      color = "orange"
     ),
     tablerAvatar(
      name = "DG",
      status = "warning"
     ),
     tablerAvatar(url = "https://image.flaticon.com/icons/svg/145/145852.svg")
    )
   ),
   server = function(input, output) {}
 )
}

tablerDash documentation built on May 2, 2019, 9:58 a.m.