progressOutput | R Documentation |
For detailed usage, see demo application by
running render()
.
progressOutput( outputId, ..., description = "Initializing", width = "100%", class = "bg-primary", value = 0, size = c("md", "sm", "xs") ) renderProgress(expr, env = parent.frame(), quoted = FALSE, outputArgs = list())
outputId |
the element id of the progress |
... |
extra elements on the top of the progress bar |
description |
descriptive message below the progress bar |
width |
width of the progress |
class |
progress class, default is |
value |
initial value, ranging from 0 to 100; default is 0 |
size |
size of the progress bar; choices are |
expr |
R expression that should return a named list of |
env |
where to evaluate |
quoted |
whether |
outputArgs |
a list of other parameters in |
progressOutput
returns 'HTML' tags containing progress bars
that can be rendered later via shiny_progress
or
renderProgress
. renderProgress
returns shiny render functions
internally.
library(shiny) library(shidashi) progressOutput("sales_report_prog1", description = "6 days left!", "Add Products to Cart", span(class="float-right", "123/150"), value = 123/150 * 100) # server function server <- function(input, output, session, ...){ output$sales_report_prog1 <- renderProgress({ return(list( value = 140 / 150 * 100, description = "5 days left!" )) }) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.