alert: Alert boxes

Description Usage Arguments See Also Examples

View source: R/alert.R

Description

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

Usage

1
alert(..., dismissible = TRUE, fade = TRUE)

Arguments

...

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

dismissible

One of TRUE or FALSE specifying if the alert may be dismissed by the user, defaults to TRUE.

fade

One of TRUE or FALSE specifying if the alert fades out or immediately disappears when dismissed, defaults to TRUE.

See Also

Other components: badge(), blockquote(), card(), collapsePane(), d1(), dropdown(), img(), jumbotron(), modal(), navContent(), popover(), pre(), toast()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
### Default alert

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

### A more complex alert

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

yonder documentation built on Jan. 11, 2020, 9:35 a.m.