alert: An alert

Description Usage Arguments Author(s) Examples

View source: R/useful-items.R

Description

An alert

Usage

1
2
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.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
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) {}
 )
}

MarkEdmondson1234/gentelellaShiny documentation built on Dec. 31, 2019, 1:24 a.m.