daattali / shinyalert

🗯️ Easily create pretty popup messages (modals) in Shiny
https://daattali.com/shiny/shinyalert-demo/
Other
241 stars 26 forks source link

Look into getting rid of `useShinyalert()` #47

Closed daattali closed 3 years ago

daattali commented 3 years ago

The useShinyalert() function is no longer required. You can still use it if you prefer to pre-load the scripts, but you would need to use useShinyalert(force=TRUE), otherwise you'll get a warning saying that it's not required. Example:

library(shiny)
library(shinyalert)

ui <- fluidPage()

server <- function(input, output, session) {
    shinyalert("Oops!", "Something went wrong.", type = "error")
}

shinyApp(ui, server)