Description Usage Arguments Value Note Examples
Change the text in the browser tab whenever the shiny application is processing any server-side code.
1 | busy_window_title(title = "Running...")
|
title |
String to give the window title. |
The browser tab title will change whenever the shiny application is in a 'busy' state.
Add use_shiny_title
within the UI for busy_window_title
to work.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | if (interactive()) {
library(shiny)
ui <- fluidPage(
title = "Initial Title",
use_shiny_title(),
busy_window_title("Sleeping..."),
actionButton("button", "Click me for a 5 second busy title")
)
server <- function(input, output, session) {
observeEvent(input$button, Sys.sleep(5))
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.