wired-progress: Wired Progress bar

Description Usage Arguments Value Examples

Description

Wired Progress bar

Usage

1
2
3
4
5
wired_progress(id, value, min = 0, max = 100, percentage = TRUE,
  width = "100%")

update_wired_progress(id, value,
  session = shiny::getDefaultReactiveDomain())

Arguments

id

Id for the progress bar.

value

Numeric value of the progress.

min

Minimum value. Default is 0.

max

Maximum value. Default is 100.

percentage

Boolean indicating if the label should show a % symbol.

width

Width of the progress bar.

session

Shiny session.

Value

an HTML tag

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
wired_progress("ID", value = 50)

wired_progress("ID", value = 150, max = 200, percentage = FALSE)


if (interactive()) {
  library(shiny)
  library(wired)

  ui <- fluidPage(
    tags$h2("Wired progress bar"),
    wired_progress("progress", value = 10),
    numericInput("update", "Enter new value:", 0)
  )

  server <- function(input, output, session) {

    observe({
      update_wired_progress("progress", input$update)
    })

  }

  shinyApp(ui, server)
}

dreamRs/wired documentation built on Nov. 19, 2019, 5 a.m.