Learn R Programming

yonder (version 0.0.5)

alert: Alert boxes

Description

Use an alert element to let the user know of successes or to call attention to problems.

Usage

alert(..., title = NULL)

Arguments

...

Character strings specifying the text of the alert or additional named arguments passed as HTML attributes to the alert element.

title

A character string or tag element specifying a heading for the alert, defaults to NULL, in which case a title is not added.

See Also

Other content: badge, blockquote, card, collapsiblePane, d1, dropdown, img, jumbotron, modal, navContent, popover, pre, progressOutlet, toast, tooltip

Examples

Run this code
# NOT RUN {
### Default alert

alert("Donec at pede.") %>%
  background("blue")

### A more complex alert

alert(
  p("Etiam vel tortor sodales"),
  hr(),
  p("Fusce commodo.")
) %>%
  background("amber")

# }

Run the code above in your browser using DataLab