Hi, I'm using shinyBS alerts and tooltips, they are really great and simple to use. One thing I've been doing is adding a timeout to my alerts, then I can use an alert to notify users that an observer completed an invisible task, such as saving a table to a folder that will later be zipped for download.
Here's how I did it:
1) I added a "timeout" argument to createAlert() that takes a numeric value in milliseconds:
Hi, I'm using shinyBS alerts and tooltips, they are really great and simple to use. One thing I've been doing is adding a timeout to my alerts, then I can use an alert to notify users that an observer completed an invisible task, such as saving a table to a folder that will later be zipped for download.
Here's how I did it: 1) I added a "timeout" argument to createAlert() that takes a numeric value in milliseconds:
2) In shinyBS.js I added to the customMessageHandler "bsAlertCreate" :
I only use it with append=FALSE, I don't know if it works with append=TRUE. This is is mostly adapted from http://stackoverflow.com/questions/7643308/how-to-automatically-close-alerts-using-twitter-bootstrap