
This creates a default progress using Semantic UI styles with Shiny input. Progress is already initialized and available under input[[input_id]].
progress(
input_id,
value = NULL,
total = NULL,
percent = NULL,
progress_lab = FALSE,
label = NULL,
label_complete = NULL,
size = "",
class = NULL
)
Input name. Reactive value is available under input[[input_id]].
The initial value to be selected for the progress bar.
The maximum value that will be applied to the progress bar.
The initial percentage to be selected for the progress bar.
Logical, would you like the percentage visible in the progress bar?
The label to be visible underneath the progress bar.
The label to be visible underneath the progress bar when the bar is at 100%.
character with legal semantic size, eg. "medium", "huge", "tiny"
UI class of the progress bar.
To initialize the progress bar, you can either choose value
and total
, or percent
.
# NOT RUN {
## Only run examples in interactive R sessions
if (interactive()) {
library(shiny)
library(shiny.semantic)
ui <- function() {
shinyUI(
semanticPage(
title = "Progress example",
progress("progress", percent = 24, label = "{percent}% complete"),
p("Progress completion:"),
textOutput("progress")
)
)
}
server <- shinyServer(function(input, output) {
output$progress <- renderText(input$progress)
})
shinyApp(ui = ui(), server = server)
}
# }
Run the code above in your browser using DataLab