verticalProgress: AdminLTE2 vertical progress bar

Description Usage Arguments Author(s) Examples

View source: R/useful-items.R

Description

This creates a vertical progress bar.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
verticalProgress(
  value,
  min = 0,
  max = 100,
  height = "40%",
  striped = FALSE,
  active = FALSE,
  status = "primary",
  size = NULL
)

Arguments

value

Progress bar value. Must be between min and max.

min

Progress bar minimum value (0 by default).

max

Progress bar maximum value (100 by default).

height

Progress bar default height (40 percent by default).

striped

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

active

Whether the progress is active or not. FALSE by default.

status

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

size

Progress bar size. NULL by default: "sm", "xs" or "xxs" also available.

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
if (interactive()) {
 library(shiny)
 library(shinydashboard)
 shinyApp(
   ui = dashboardPagePlus(
     header = dashboardHeaderPlus(
      enable_rightsidebar = TRUE,
      rightSidebarIcon = "gears"
     ),
     sidebar = dashboardSidebar(),
     body = dashboardBody(
      verticalProgress(
       value = 10,
       striped = TRUE,
       active = TRUE
      ),
      verticalProgress(
       value = 50,
       active = TRUE,
       status = "warning",
       size = "xs"
      ),
      verticalProgress(
       value = 20,
       status = "danger",
       size = "sm",
       height = "60%"
      )
     ),
     rightsidebar = rightSidebar(),
     title = "Right Sidebar"
   ),
   server = function(input, output) { }
 )
}

dsciencelabs/shinydashboardPlus documentation built on Dec. 20, 2021, 2:10 a.m.