useSpinkit {standby} | R Documentation |
SpinKit
Description
Simple CSS spinners.
Usage
useSpinkit()
spinkit(uiOutput, type = "plane", color = "#333", size = "40px")
Arguments
uiOutput |
An output element to be wrapped within a spinner. |
type |
Type of spinner to use. Valid values are:
|
color |
Color of the spinner. Defaults to |
size |
Size of the spinner. Defaults to |
Value
None
Functions
-
useSpinkit
: Dependencies to include in your UI. -
spinkit
: Display loading animation.
Examples
if (interactive()) {
library(shiny)
shinyApp(
ui = fluidPage(
useSpinkit(),
actionButton("render", "Render"),
spinkit(plotOutput("plot"))
),
server = function(input, output) {
output$plot <- renderPlot({
input$render
Sys.sleep(3)
hist(mtcars$mpg)
})
}
)
}
[Package standby version 0.1.0 Index]