bs4ProgressBar: Create a Bootstrap 4 progress bar

Description Usage Arguments Author(s) Examples

Description

AdminLTE3 progress bar

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
bs4ProgressBar(
  value,
  label = NULL,
  min = 0,
  max = 100,
  vertical = FALSE,
  striped = FALSE,
  status = c("primary", "warning", "danger", "info", "success"),
  size = NULL,
  animated = FALSE
)

Arguments

value

Progress bar value.

label

Progress label. NULL by default.

min

Progress bar minimum value.

max

Progress bar maximum value.

vertical

Whether to display the progress bar in vertical mode. FALSE by default.

striped

Whether the progress bar is striped or not. FALSE by default.

status

Progress bar status. "primary", "success", "warning", "danger" or "info".

size

Progress bar size. NULL, "sm", "xs" or "xxs".

animated

Whether to animate the progress bar. Default to FALSE.

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
47
48
if(interactive()){
 library(shiny)
 library(bs4Dash)
 
 shiny::shinyApp(
   ui = bs4DashPage(
     navbar = bs4DashNavbar(),
     sidebar = bs4DashSidebar(),
     controlbar = bs4DashControlbar(),
     footer = bs4DashFooter(),
     title = "test",
     body = bs4DashBody(
       title = "Progress bars",
       bs4Card(
        title = "Progress bars",
        footer = tagList(
          bs4ProgressBar(
          value = 5,
          size = "xxs",
          striped = FALSE,
          status = "info"
         ),
         bs4ProgressBar(
          value = 25,
          striped = TRUE,
          status = "warning",
          label = "25%"
         )
        ),
        bs4ProgressBar(
         value = 80,
         vertical = TRUE,
         status = "success"
        ),
        bs4ProgressBar(
         value = 100,
         vertical = TRUE,
         striped = TRUE,
         size = "sm",
         status = "danger",
         animated = TRUE
        )
       )
     )
   ),
   server = function(input, output) {}
 )
}

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