Description Usage Value See Also Examples
Add this function to the UI of a shiny application in order for you to be able to update the browser title.
1 |
A script tag that enables shinytitle
to work within a shiny app.
change_window_title
flashing_window_title
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | if (interactive()) {
library(shiny)
ui <- fluidPage(
title = "Initial Title",
use_shiny_title(),
actionButton("button", "Click me for a new title"),
)
server <- function(input, output, session) {
observeEvent(input$button, {
change_window_title(session, "New Title")
})
}
shinyApp(ui, server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.