alert.RdUse an alert element to let the user know of successes or to call attention to problems.
alert(..., dismissible = TRUE, fade = TRUE)
| ... | Character strings specifying the text of the alert or additional named arguments passed as HTML attributes to the alert element. |
|---|---|
| dismissible | One of |
| fade | One of |
Other components:
badge(),
blockquote(),
card(),
collapsePane(),
d1(),
dropdown(),
img(),
jumbotron(),
modal(),
navContent(),
popover(),
pre(),
toast()
#> <div class="alert alert-dismissible fade show alert-blue" role="alert"> #> Donec at pede. #> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> #> <span aria-hidden="true">×</span> #> </button> #> </div>### A more complex alert alert( h4("Etiam vel tortor sodales"), hr(), p("Fusce commodo.") ) %>% background("amber")#> <div class="alert alert-dismissible fade show alert-amber" role="alert"> #> <h4 class="alert-heading">Etiam vel tortor sodales</h4> #> <hr/> #> <p>Fusce commodo.</p> #> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> #> <span aria-hidden="true">×</span> #> </button> #> </div>