Description Usage Arguments See Also Examples
Creates an shinyalert. The show and hide functions are used in server.R. Show an alert placed in ui.R with shinyalert
Used in server.R. Show an alert placed in ui.R with shinyalert
1 2 3 4 5 | shinyalert(id, click.hide = TRUE, auto.close.after = NULL)
showshinyalert(session, id, HTMLtext, styleclass = "success")
hideshinyalert(session, id)
|
id |
Specifies the alert id that will be used to access the |
click.hide |
If TRUE then clicking on the alert will hide it. Defaults to TRUE |
auto.close.after |
After this many seconds auto close the alert |
session |
The Shiny session specified in shinyServer(function(input, output, session) ...). |
HTMLtext |
The HTML you want displayed in the text |
styleclass |
The styling class of the alert–options are primary, info, success ,warning, ,danger ,inverse ,link |
shinyalert
shinyalert
shinyalert
Other ShinySky elements: actionButton
,
select2Input
,
textInput.typeahead
Other ShinySky elements: actionButton
,
select2Input
,
textInput.typeahead
Other ShinySky elements: actionButton
,
select2Input
,
textInput.typeahead
1 2 3 4 5 6 7 | # ui.R
shinyalert("id", click.hide = TRUE, auto.close.after = NULL)
# close after one second
# and clicking doesn't hide it
shinyalert("id", click.hide = FALSE, auto.close.after = 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.