Learn R Programming

shinysky (version 0.1.3)

shinyalert: shinyalert

Description

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

Usage

shinyalert(id, click.hide = TRUE, auto.close.after = NULL)

showshinyalert(session, id, HTMLtext, styleclass = "success")

hideshinyalert(session, id)

Arguments

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

See Also

shinyalert

shinyalert

shinyalert

Other ShinySky elements: actionButton, select2Input, textInput.typeahead

Other ShinySky elements: actionButton, select2Input, textInput.typeahead

Other ShinySky elements: actionButton, select2Input, textInput.typeahead

Examples

Run this code
# NOT RUN {
# 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)

# }

Run the code above in your browser using DataLab