busy_window_title {shinytitle} | R Documentation |
Create Busy Browser Title
Description
Change the text in the browser tab whenever the shiny application is processing any server-side code.
Usage
busy_window_title(title = "Running...")
Arguments
title |
String to give the window title. |
Value
The browser tab title will change whenever the shiny application is in a 'busy' state.
Note
Add use_shiny_title
within the UI for busy_window_title
to work.
Examples
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)
}
[Package shinytitle version 0.1.0 Index]