AnalytixWare / ShinySky

Various UI widgets/components not part of Shiny e.g. alerts, styled buttons
Other
188 stars 65 forks source link

hide shiny alert after couple of seconds #5

Closed JBX028 closed 10 years ago

JBX028 commented 10 years ago

Hi,

First of all, congratulation for this package which is a nice add on for shiny.

I know it's possible to hide an alert by clicking on it but Is there anyway to hide automatically an alert after 2 or 3 seconds ?

Thanks!

JBX028 commented 10 years ago

I have updated shinyalert.js and it's ok now.

xiaodaigh commented 10 years ago

I have updated shinyalert function to have an argument called auto.close.after. It takes an integer and will automatically close the alert after that many seconds. Beware that the latest version of showshinyskyalert function has rearrange the parameters putting session as the first argument to be consistent with all other changes. I felt this change is necessary early on.

JBX028 commented 10 years ago

Thanks!