Learn R Programming

gentelellaShiny (version 0.1.0)

alert: An alert

Description

An alert

Usage

alert(..., title = NULL, status = "primary", dismissible = TRUE,
  width = 3)

Arguments

...

Alert text

title

Alert title

status

Alert status: "danger", "warning", "info", "success" or "primary"

dismissible

Whether the alert is closable or not. TRUE by default.

width

Alert width. 3 by default.

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(gentelellaShiny)
 shinyApp(
  ui = gentelellaPageCustom(
   gentelellaBody(
    alert(
     status = "warning",
     title = "An alert",
     "Best check yo self,
     you're not looking too good."
    )
   )
  ),
  server <- function(input, output) {}
 )
}

# }

Run the code above in your browser using DataLab