Dean Attali announces a new shiny package:
shinyalert
uses the sweetalert JavaScript library to create simple and elegant modals in Shiny. Modals can contain text, images, OK/Cancel buttons, an input to get a response from the user, and many more customizable options. A modal can also have a timer to close automatically.Simply call
shinyalert()
with the desired arguments, such as a title and text, and a modal will show up. In order to be able to callshinyalert()
in a Shiny app, you must first calluseShinyalert()
anywhere in the app’s UI.
It does look nice. Check out Dean’s GitHub repo for more information. H/T R-Bloggers