showAlert {psichomics}R Documentation

Show or remove an alert

Description

You can also use errorAlert and warningAlert to use template alerts already stylised to show errors and warnings respectively.

Usage

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")

Arguments

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

Value

NULL (this function is used to modify the Shiny session's state)

See Also

showModal


[Package psichomics version 1.9.1 Index]