Learn R Programming

gentelellaShiny (version 0.1.0)

progressBar: Progress bar

Description

Progress bars are scaled from 0 to 100

Usage

progressBar(value, side = "left", status = NULL, striped = FALSE,
  color = NULL)

Arguments

value

progress value

side

From which side the bar comes: "left" or "right". "left" by default.

status

progress status: "danger", "warning", "info", "success" or "primary". When status is not NULL, color is NULL

striped

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

color

Alternative to status: "red", "orange", "green", "blue", "purple". When color is not NULL, status is NULL.

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(gentelellaShiny)
 shinyApp(
  ui = gentelellaPageCustom(
   gentelellaBody(
    box(
     width = 3,
     title = "Progress Bars",
     progressBar(
      20,
      side = "left",
      status = "danger",
      striped = FALSE
     ),
     progressBar(
      70,
      side = "right",
      color = "purple",
      striped = TRUE
     )
    )
   )
  ),
  server <- function(input, output) {}
 )
}

# }

Run the code above in your browser using DataLab