bs4Dash (version 0.5.0)

bs4ProgressBar: Create a Bootstrap 4 progress bar

Description

AdminLTE3 progress bar

Usage

bs4ProgressBar(
  value,
  min = 0,
  max = 100,
  vertical = FALSE,
  striped = FALSE,
  status = c("primary", "warning", "danger", "info", "success"),
  size = NULL
)

Arguments

value

Progress bar value

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".

Examples

Run this code
# NOT RUN {
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"
         )
        ),
        bs4ProgressBar(
         value = 80,
         vertical = TRUE,
         status = "success"
        ),
        bs4ProgressBar(
         value = 100,
         vertical = TRUE,
         striped = TRUE,
         size = "sm",
         status = "danger"
        )
       )
     )
   ),
   server = function(input, output) {}
 )
}

# }

Run the code above in your browser using DataLab