useVizLoad {standby} | R Documentation |
Loading Visualization
Description
Loading bars and spinners.
Usage
useVizLoad()
vizLoad(
uiOutput,
type = "bars",
size = "large",
color = NULL,
add_label = FALSE,
label = "Loading..."
)
Arguments
uiOutput |
An output element to be wrapped within a spinner. |
type |
The type of bar/spinner to use. Valid values are:
|
size |
The size of the bar/spinner. Valid values are:
|
color |
The color of the bar/spinner. Choose between hexadecimal, RGB or keyword values. |
add_label |
Logical; if |
label |
The label to be displayed below the bar/spinner. |
Value
None
Functions
-
useVizLoad
: Dependencies to include in your UI. -
vizLoad
: Display loading animation.
Examples
if (interactive()) {
library(shiny)
shinyApp(
ui = fluidPage(
useVizLoad(),
actionButton("render", "Render"),
vizLoad(plotOutput("plot"))
),
server = function(input, output) {
output$plot <- renderPlot({
input$render
Sys.sleep(3)
hist(mtcars$mpg)
})
}
)
}
[Package standby version 0.1.0 Index]