showAlert {psichomics} | R Documentation |
You can also use errorAlert
and warningAlert
to use template
alerts already stylised to show errors and warnings respectively.
showAlert(session, ..., title = NULL, style = NULL, dismissible = TRUE, alertId = "alert") errorAlert(session, ..., title = NULL, dismissible = TRUE, alertId = "alert") warningAlert(session, ..., title = NULL, dismissible = TRUE, alertId = "alert") removeAlert(output, alertId = "alert")
session |
Shiny session |
... |
Arguments to render as elements of alert |
title |
Character: title of the alert (optional) |
style |
Character: style of the alert ("alert-danger", "alert-warning" or NULL) |
dismissible |
Boolean: is the alert dismissible? TRUE by default |
alertId |
Character: alert identifier |
output |
Shiny output |
NULL (this function is used to modify the Shiny session's state)