Dismisses the bs_alert() registered under id, exactly as its close
button does. Bootstrap removes the element, so the alert cannot be brought
back: render it from a renderUI() if it has to come and go.
Usage
close_bs_alert(id, session = shiny::getDefaultReactiveDomain())Arguments
- id
Alert id, as passed to
bs_alert().- session
The Shiny session.
Examples
if (interactive()) close_bs_alert("saved")