| createAlert | R Documentation |
createAlert is used within the Server logic of your Shiny app to display
an alert to the user.
createAlert(
session,
anchorId,
alertId = NULL,
title = NULL,
content = NULL,
style = NULL,
dismiss = TRUE,
append = TRUE
)
session |
The session object passed to function given to shinyServer. |
anchorId |
The unique identifier of the anchor where the alert should be displayed. |
alertId |
Optional A unique identifier for the Alert. |
title |
Optional A title for the Alert. |
content |
The main body of the Alert. HTML tags are allowed. |
style |
A bootstrap style to apply. Defaults to |
dismiss |
|
append |
|
See Alerts for more information about how to use createAlert with the
rest of the Alerts family.
Run bsExample("Alerts") for an example
of createAlert functionality.
Other Alerts:
Alerts,
bsAlert(),
closeAlert()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.